sequence caches

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: sequence caches
Date: 2003-05-20 01:02:06
Message-ID: 3EC97E8E.7000502@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The way I understand it is a sequence cache works by getting more than one sequence id
from the sequence at once, which saves shared memory locking. My question: If I make a
query like:
SELECT NEXTVAL('seqname'),NEXTVAL('seqname'),NEXTVAL('seqname');
... will that lock shared memory 3 times or just once?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2003-05-20 01:54:37 Re: infinite trigger loop
Previous Message Doug McNaught 2003-05-20 00:50:31 Re: PostgreSQL Performance on OpenBSD