How to change datetime_string while using create_parent function #380
-
Hi, First time using pg_partman, looking for help on changing datetime_string while using create_parent function on PG13. My parent table DDL: CREATE TABLE foo ( Using the following create_parent function call: SELECT partman.create_parent(p_parent_table => 'public.foo', the following tables are created: the entry in table "part_config.datetime_string" column value is set to YYYY_MM I'd like to create the partitions with datetime_string YYYYMM, meaning: how do I change the naming convention? thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So I'd originally designed pg_partman without intending to allow custom datetime_strings since it was an easier design. Hadn't had the need or request to allow that since then and it's worked out well, so I hadn't worked on purposely allowing that. It may just work changing the string value and renaming your tables afterwards, but I cannot guarantee that. |
Beta Was this translation helpful? Give feedback.
So I'd originally designed pg_partman without intending to allow custom datetime_strings since it was an easier design. Hadn't had the need or request to allow that since then and it's worked out well, so I hadn't worked on purposely allowing that. It may just work changing the string value and renaming your tables afterwards, but I cannot guarantee that.