On 11/08/2014 12:35 AM, Petr Jelinek wrote: >> >> Do you think it'd be simple to provide a blocking, transactional >> sequence allocator via this API? i.e. gapless sequences, much the same >> as typically implemented with SELECT ... FOR UPDATE on a counter table. >> >> It might be more digestible standalone, and would be a handy contrib/ >> example extension demonstrating use of the API. >> > > Yes I think that's doable (once we iron out the API we can agree on).
Cool; I think that'd be an interesting self-contained example that'd also have real-world uses ... and provide a nice succinct way to answer those semi-regular "how do I create a sequence that doesn't have holes" questions. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers