-
Hi! I need to monthly partition the zabbix trends table, which I've simplified here:
But clock is defined as an integer, and when I try to create_parent( ) using p_interval as 1 month:
it gives me the following error
It works fine on daily partitions, because I set p_interval to '86400' seconds in a day. But month does not have a predefined amount of seconds. Some months have more days than others. What should I do in this situation? pg_partman 5.2.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See the https://github.com/pgpartman/pg_partman/blob/development/doc/pg_partman.md#create_parent |
Beta Was this translation helpful? Give feedback.
See the
p_epoch
parameter tocreate_parent
. Zabbix was the reason this feature was added. :)https://github.com/pgpartman/pg_partman/blob/development/doc/pg_partman.md#create_parent