Re: After ~Crash Sequence not correct

From: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
Cc: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>, pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: After ~Crash Sequence not correct
Date: 2001-12-20 11:45:15
Message-ID: E2870D8CE1CCD311BAF50008C71EDE8E01F7475F@MAIL_EXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

No. I had fsync on.
- Stuart

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 19 December 2001 18:49
To: Mikheev, Vadim
Cc: Henshall, Stuart - WCP; pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: [BUGS] After ~Crash Sequence not correct

"Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM> writes:
> It was made to avoid WAL-loging on each nextval call, ie it should work
> like OID pre-fetching: value stored in WAL must always "exceed" values
> returned by nextval so on the after-crash-restart sequence should be
> advanced to value which was never returned by nextval (for non-cycled
> sequences). Maybe I made some mistakes in implementation?

Oh, okay. What I saw was that the next nextval() after restart was
higher than what I was expecting; but that's correct given the prefetch
behavior.

But we've seen several reports wherein the value appeared to go
backwards after a crash.

Stuart, you weren't running with -F (fsync off) by any chance, were you?

regards, tom lane

Browse pgsql-bugs by date

  From Date Subject
Next Message Paul Vixie 2001-12-20 18:38:48 casting TEXT to CIDR (or to INET) has to be possible
Previous Message Tom Lane 2001-12-19 18:48:33 Re: After ~Crash Sequence not correct