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

updating 4.7.4 to 5.0.0 fails: cannot ALTER TABLE "part_config_sub" because it has pending trigger events #734

Closed
jw1u1 opened this issue Jan 16, 2025 · 3 comments

Comments

@jw1u1
Copy link

jw1u1 commented Jan 16, 2025

Hi,

after upgrading from 4.2 to 4.7.4 an upgrade to 5.0.0 fails:

ALTER EXTENSION pg_partman UPDATE TO '5.0.0';
ERROR: cannot ALTER TABLE "part_config_sub" because it has pending trigger events

How to track that down?

@keithf4
Copy link
Collaborator

keithf4 commented Jan 16, 2025

Ensure you have at least the 5.0.1 version of pg_partman installed. That should provide the proper split update files to avoid this error. See the upgrade guide documentation

https://github.com/pgpartman/pg_partman/releases/tag/v5.0.1
https://github.com/pgpartman/pg_partman/blob/v5.0.1/doc/pg_partman_5.0.1_upgrade.md

@jw1u1
Copy link
Author

jw1u1 commented Jan 23, 2025

Thanks.
It's not obvious to continue on an error...

@jw1u1 jw1u1 closed this as completed Jan 23, 2025
@keithf4
Copy link
Collaborator

keithf4 commented Jan 23, 2025

It is always recommended to carefully read any upgrade documentation for any software you're using, especially when changing major versions. This is why I made this problem the first note on the 5.x CHANGELOG. I hope you were able to get the upgrade to go through.

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

No branches or pull requests

2 participants