Re: Sequence Access Methods, round two

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, Kirill Reshke <reshkekirill(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Sequence Access Methods, round two
Date: 2025-11-07 16:05:55
Message-ID: 6be3da10-55cb-4e11-917c-69ebb032b903@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 7/11/2025 07:12, Michael Paquier wrote:
> On Thu, Oct 30, 2025 at 04:44:23PM +0900, Michael Paquier wrote:
>> Rebased due to conflicts with 76acf4b722fa.
>
> Rebased as v24 as GUCs need to be in alphabetical order.

Thanks for your efforts!
I haven't dived into the code yet; I just want to add some words about
the reasoning.
1. For pgEdge Snowflake, it would be really beneficial - there are not
only code copying issues, but also the Serial -> Snowflake conversion
algorithm. Additionally, for now, only an in-core sequence can be used
as an 'identity always' column.
2. Multimaster project [1] also attempts to resolve the sequence issue.
You may check how its developers tackle the problem - I guess any
active-active configuration needs it.
3. I wonder if postgres_fdw-based shardman could benefit from that. I
imagine an implementation of an auto-partitioned table where the
partitioning key is generated automatically based on the partition where
the tuple is inserted.
4. Any kind of non-uniform distribution may be implemented that is
helpful for testing purposes

[1] https://github.com/postgrespro/mmts

--
regards, Andrei Lepikhov,
pgEdge

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-11-07 16:07:35 Re: CI: Add task that runs pgindent
Previous Message Peter Eisentraut 2025-11-07 16:05:11 Re: Consistently use the XLogRecPtrIsInvalid() macro