Re: Serial Jumping

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Serial Jumping
Date: 2009-01-27 06:10:18
Message-ID: 20090127061018.GA29255@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to db(dot)subscriptions(at)shepherdhill(dot)biz :
> Hi,
>
> I have a table with BIG SERIAL field as Primary KEY. During high load,
> entries in the BIG SERIAL field are jumped. One could see a row with
> 1367 and expecting the next INSERT to be 1368, one would end up
> getting 1369.
>
> Please is this normal?

Yes. Because a serial can't rolled back.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ITAGAKI Takahiro 2009-01-27 07:10:26 Re: Installing PostgreSQL on Windows 7 Beta Build 7000 64bit - first results
Previous Message Craig Ringer 2009-01-27 05:24:23 Re: Serial Jumping