Re: Sequence Question DOH! - Mailing list pgsql-general

From Tom Lane
Subject Re: Sequence Question DOH!
Date
Msg-id 4083.1091750584@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sequence Question DOH!  (Oscar Tuscon <obtuse@bmwe30.net>)
List pgsql-general
Oscar Tuscon <obtuse@bmwe30.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

pgsql-general by date:

Previous
From: Duane Lee - EGOVX
Date:
Subject: Re: Insert into sintax
Next
From: "Jim Wilson"
Date:
Subject: Commit Transaction Command