public inbox for [email protected]
help / color / mirror / Atom feedFrom: Alvaro Herrera <[email protected]>
To: Brian McKiernan <[email protected]>
Cc: [email protected]
Subject: Re: Advice on Contiguous IDs
Date: Tue, 9 Jan 2018 13:47:35 -0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
Brian McKiernan wrote:
> My Issue:
> My primary keys in a certain table are not contiguous.
If you have a need to have values that are contiguous, you need to ask
yourself why and then see what mechanism provides the semantics you
need. An easy way is to lock the table containing the column, for
example, which of course means only one transaction can do it at a time.
For many use cases this is good enough.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
view thread (6+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Advice on Contiguous IDs
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox