Re: sequences and "addval('myseq', value)" - Mailing list pgsql-hackers

From Tom Lane
Subject Re: sequences and "addval('myseq', value)"
Date
Msg-id 26784.1086674403@sss.pgh.pa.us
Whole thread Raw
In response to sequences and "addval('myseq', value)"  (pgsql@mohawksoft.com)
Responses Re: sequences and "addval('myseq', value)"  (pgsql@mohawksoft.com)
List pgsql-hackers
pgsql@mohawksoft.com writes:
> Anyway, I'm not quite getting the idea of caching sequence values. I
> understand the performance benefits, but it seems problematic across
> multiple backends, almost ensuring "holes" in the sequence of numbers.

The point is to reduce lock contention on the sequence table.  Since
lack-of-holes is explicitly *not* a design goal, there is no downside
that I see.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: vacuumdb: vacuuming of database "testdonors" failed: ERROR: invalid memory alloc request size 3221225472
Next
From: Shridhar Daithankar
Date:
Subject: Re: [pgsql-hackers-win32] Failures with windows port