-
Notifications
You must be signed in to change notification settings - Fork 284
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
LIST partitioned table does not get new partitions with run_maintenance* calls #704
Comments
Created an issue for this since it is a valid bug. Thanks for reporting! |
Rather odd because I'm doing something similar in this test and it seems to be working. Will keep investigating https://github.com/pgpartman/pg_partman/blob/master/test/test-id-1-list.sql |
So I think I found the issue. I ran into this elsewhere in that PG returns bigint values differently than int values in some cases in the partition definition See your table description:
vs the one in my test
I have code to handle that in
https://github.com/pgpartman/pg_partman/blob/master/sql/functions/show_partitions.sql#L106 |
I've pushed a fix for this into the development branch for version 5.2. It wasn't just the Thanks again! |
@kmustkivi Tagging you here since I'm actually not sure if it's notifying you after migrating to an actual issue |
Hello @keithf4 ! Indeed, I did not get a notification about the updates here. Anyway, I confirm that all my test with pg_partman 5.2.0 in development branch are now successful and the bug is fixed. Sincere Thank You for this excellent module and all the help! |
Version 5.2.0 has been released with this fix. Thanks again for reporting and testing. |
Thank you so much! |
Discussed in #702
Originally posted by kmustkivi November 12, 2024
Hello,
Am I doing something wrong or perhaps I have stumbled upon a bug that affects LIST partitioned tables but here is the POC tested on PG v14.13, pg_partman v5.1.0:
It seems that the function
partman.show_partition_info
called within the maintenance subroutines returns NULL values for all items and thus nothing gets done from there on.The text was updated successfully, but these errors were encountered: