Re: sequences and "addval('myseq', value)"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql(at)mohawksoft(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: sequences and "addval('myseq', value)"
Date: 2004-06-08 06:00:03
Message-ID: 26784.1086674403@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

pgsql(at)mohawksoft(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2004-06-08 07:23:51 MinGW, psql, and readline
Previous Message Tom Lane 2004-06-08 05:58:28 Re: vacuumdb: vacuuming of database "testdonors" failed: ERROR: invalid memory alloc request size 3221225472