Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow history table to be partitioned #19

Open
eryx67 opened this issue Feb 24, 2021 · 0 comments
Open

Allow history table to be partitioned #19

eryx67 opened this issue Feb 24, 2021 · 0 comments

Comments

@eryx67
Copy link

eryx67 commented Feb 24, 2021

Is it possible to allow history table to be partitioned?
Function add_system_versioning doesn't allow me to do so, probably here:

CASE object_type

But if I create history table as normal and then substitute its name with name of partitioned
table all works fine:

UPDATE periods.system_versioning SET history_table_name = TO_REGCLASS('partitioned_table_hist')
WHERE history_table_name='normal_table_hist'::regclass;

The only problem is management. I have to change all partitioned table names every time I need to add
a new history table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant