Replies: 1 comment 1 reply
-
When sharding by tenant ID and partitioning by time, many tenants share the same partitioned table. The partiitioning hierarchy is global, so there is no way to drop partitions only for specific tenants or even specific shards. The workaround right now would be to use DELETE. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a multi tenant application, that uses Citus and pg_partman, I want to be able to set the retention time for the partitions based on each Tenant's config setting. As per the docs, the retention is specified using a query like the one below, this means the retention is set for 1 month for all the tenants. How do I set the retention for each tenant? I think this requirement is quite common and hence asking it here, though the ability really need to be present in 'partman' extension.
UPDATE partman.part_config SET retention_keep_table = false, retention = '1 month' WHERE parent_table = 'github.events';
Beta Was this translation helpful? Give feedback.
All reactions