-
Notifications
You must be signed in to change notification settings - Fork 286
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
Request: undo_parent #706
Comments
Interesting idea. Maybe something of a more general config clean up function that by default removes the config but with parameters to do other things optionally (remove the template table, cleanup sub-partition config, etc). I'll see what I can come up with or you're free to work on a PR as well. |
Also, what does the |
Does Cleaning up pg_partman manually is also quite possible, but that would require me to understand precisely what gets created when |
Yes, the undo_partition functions/procedure will clean up the configs and template tables as well. I guess another option could be something to |
Yeah, docs don't make it sound like that's what
but I thought it just means that it reverts
But yeah, in the case I describe there's no need to keep anything |
Also, naming: |
The Good point on the name. It's been like that for a long time now, tho. Maybe I'll reconsider a rename during the next major version update. |
I was performing some tests in my local and wanted to try |
We're still experimenting with various partition configurations, and sometimes I decide that the current version is not something I want. In that case I just want to drop it, but I don't want garbage to stay in partman config. Can we have an
undo_parent
that will just remove everything about the table from partman configuration? Template and config entreis, and whateverThe text was updated successfully, but these errors were encountered: