Re: Sequence Access Methods, round two
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>, Peter Smith <smithpb2250@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-08-26T04:45:12Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Refactor init_params() in sequence.c to not use FormData_pg_sequence_data
- ba3d93b2e806 19 (unreleased) landed
-
Fix comment thinko in sequence.c
- 17a3f79f812c 17.0 landed
-
Group more closely cache updates for backends in sequence.c
- 6e951bf98e2e 17.0 landed
-
Introduce sequence_*() access functions
- 449e798c77ed 17.0 landed
Attachments
- v7-0001-Remove-log_cnt-from-pg_sequence_read_tuple.patch (text/x-diff) patch v7-0001
- v7-0002-Remove-FormData_pg_sequence_data-from-init_params.patch (text/x-diff) patch v7-0002
- v7-0003-Integrate-addition-of-attributes-for-sequences-wi.patch (text/x-diff) patch v7-0003
- v7-0004-Refactor-code-for-in-core-local-sequences.patch (text/x-diff) patch v7-0004
- v7-0005-Sequence-access-methods-backend-support.patch (text/x-diff) patch v7-0005
- v7-0006-Sequence-access-methods-dump-restore-support.patch (text/x-diff) patch v7-0006
- v7-0007-Sequence-access-methods-core-documentation.patch (text/x-diff) patch v7-0007
- v7-0008-snowflake-Add-sequence-AM-based-on-it.patch (text/x-diff) patch v7-0008
On Thu, Jun 20, 2024 at 03:12:32PM +0900, Michael Paquier wrote: > While on it, I have noticed a couple of conflicts while rebasing, so > attached is a refreshed patch set. Please find attached a new patch set for the next commit fest. The patch has required a bit of work to be able to work on HEAD, particularly around the fact that pg_sequence_read_tuple() is able to do the same work as the modifications done for pg_sequence_last_value() in the previous patch sets. I have modified the patch set to depend on that, and adapted pg_dump/restore to it. The dump/restore part has also required some tweaks to make sure that the AM is dumped depending on if --schema-only and if we care about the values. Finally, I have been rather annoyed by the addition of log_cnt in the new function pg_sequence_read_tuple(). This patch set could also implement a new system function, but it looks like a waste as we don't care about log_cnt in pg_dump and pg_upgrade on HEAD, so I'm proposing to remove it on a different thread: https://www.postgresql.org/message-id/Zsvka3r-y2ZoXAdH%40paquier.xyz -- Michael