Re: Sequence Access Methods, round two - Mailing list pgsql-hackers

From Andrei Lepikhov
Subject Re: Sequence Access Methods, round two
Date
Msg-id 6be3da10-55cb-4e11-917c-69ebb032b903@gmail.com
Whole thread Raw
In response to Re: Sequence Access Methods, round two  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Sequence Access Methods, round two
List 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



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Consistently use the XLogRecPtrIsInvalid() macro
Next
From: Tom Lane
Date:
Subject: Re: CI: Add task that runs pgindent