Open jobinau opened 1 year ago
Analysis reveals that the cause of the problem is that the DDL returned by pg_catalog.pg_get_expr() will be unquoted values like
FOR VALUES FROM (0) TO (500000)
Instead of what was expected by the existing logic, like
FOR VALUES FROM ('0') TO ('500000')
Thanks to @gianmh for reporting the problem.
Problem Reproduction step
Create the first partition
Then generate the new partitions.
The output generated for newly created partition will contain the same partition again