Re: Pgstattuple on Sequences: Seeking Community Feedback on Potential Patch
Ayush Vatsa <ayushvatsa1810@gmail.com>
From: Ayush Vatsa <ayushvatsa1810@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, michael@paquier.xyz
Date: 2024-08-29T18:47:47Z
Lists: pgsql-hackers
Attachments
- v1-0001-Introduced-support-for-sequences-back-in-pgstattu.patch (application/octet-stream) patch v1-0001
> I'm concerned that some of this might be platform-dependent and make the > test unstable. Perhaps we should just select count(*) here. > Sure enough, the CI testing for 32-bit is failing here [0]. Thanks for catching that! I wasn't aware of this earlier. > I think we should be a bit more descriptive here Regarding the comment, I've tried to make it more descriptive and simpler than the existing one in verify_heapam.c. Here’s the comment I propose: /* * Sequences implicitly use the heap AM, even though it's not explicitly * recorded in the catalogs. For other relation kinds, verify that the AM * is heap; otherwise, raise an error. */ Please let me know if this still isn’t clear enough, then I can make further revisions in line with verify_heapam.c. The patch with all the changes is attached. Regards Ayush Vatsa AWS
Commits
-
Fix contrib/pageinspect's test for sequences.
- ef46a73f6941 13.17 landed
- e0277d90acf6 12.21 landed
- a63aef5e496c 15.9 landed
- 9b3c3c0fc206 17.0 landed
- 70d1c664f437 18.0 landed
- 0970889e352c 14.14 landed
- 0938a4ecda33 16.5 landed
-
Reintroduce support for sequences in pgstattuple and pageinspect.
- e03042a7003d 15.9 landed
- dd5670fa549e 12.21 landed
- ca902529cc0f 13.17 landed
- 8a94af8a2d0f 14.14 landed
- 6ea7f04b7366 17.0 landed
- 2bd4c06bba8c 16.5 landed
- 05036a3155c1 18.0 landed
-
Only allow heap in a number of contrib modules.
- 4b82664156c2 12.0 cited