Re: Sequence Question DOH!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: obtuse(at)bmwe30(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Sequence Question DOH!
Date: 2004-08-06 00:03:04
Message-ID: 4083.1091750584@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oscar Tuscon <obtuse(at)bmwe30(dot)net> writes:
> I found the average select nextval() call was taking 2ms, which seems
> a bit slow to me. Throw in the fsync I suppose and that'd explain it.

> Interestingly, in the tests I ran the minimum select nextval() was
> 400us, and the max was 35ms, with an average of 2ms.

I believe that nextval() only actually writes to disk once every 32
calls. This probably explains the variability.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message amir 2004-08-06 00:41:37 getting dead locks with 2 functions
Previous Message Duane Lee - EGOVX 2004-08-05 23:29:27 Re: Insert into sintax