Re: 9.4 Proposal: Initdb creates a single table - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: 9.4 Proposal: Initdb creates a single table
Date
Msg-id 20140424170018.GZ25695@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: 9.4 Proposal: Initdb creates a single table  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 9.4 Proposal: Initdb creates a single table  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
Tom Lane wrote:

> This is not our fault, and I don't want us to get caught up in trying
> to fix a fundamentally broken concept --- which is what a generic
> "uuidserial" API would be.  If you try to paper over the difficulties
> here, they'll just bite you on the rear someday.

But we have non-colliding generation technology for OIDs in system
catalogs.  We could try to reuse the idea in a UUID generator: grab one
value, try to insert; if it fails generate a new one, lather, rinse,
repeat.

This would make uuidserial not quite as simple as SERIAL pseudotype, of
course.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.4 Proposal: Initdb creates a single table
Next
From: Heikki Linnakangas
Date:
Subject: Re: 9.4 Proposal: Initdb creates a single table