Jira Link: DB-5099

Description

After creation tables like this it is not possible to reconnect to DB

CREATE TABLE t_with_cast (d DATE, v INT) PARTITION BY RANGE(EXTRACT(month FROM d));
CREATE TABLE t_with_cast_p0 PARTITION OF t_with_cast FOR VALUES FROM (1) TO (12);

The reason is that tables uses functions for partitioning and some of them requires implicit casts. As a result pg_cast table is accessed but it is not prefetched.

0
© 2022 pullanswer.com - All rights reserved.