Re: Best approach for a "gap-less" sequence - Mailing list pgsql-general

From AgentM
Subject Re: Best approach for a "gap-less" sequence
Date
Msg-id F4725942-60DF-4C06-A1F4-E9FC313CDDBF@themactionfaction.com
Whole thread Raw
In response to Re: Best approach for a "gap-less" sequence  (Jorge Godoy <jgodoy@gmail.com>)
List pgsql-general
Just in case no one else has brought it up- 8.1+ supports 2PC and
savepoints, so one alternative would be to run your standard
insertion operations in a prepared transaction or savepoint block. If
you get so far as being able to prepare the transaction/complete the
savepoint block, you should be able to snag a sequence id and commit
everything.

-M

pgsql-general by date:

Previous
From: Kevin Murphy
Date:
Subject: Re: COLLATE
Next
From: "Harald Armin Massa"
Date:
Subject: PostgreSQL getting slower over time, restart of service cures the problem