Re: [SQL] WAL-files restore and nextval('PK')

2010-05-03 Thread Alvaro Herrera
Andreas Gaab wrote: > Dear all, > > after an WAL-restore of our Postgres DB, we observe seemingly wrong values of > our sequences. This is normal. The reason is that sequences are WAL-logged in chunks, not single values (otherwise they'd be too slow). So after recovery, the values jump to the

Re: [SQL] WAL-files restore and nextval('PK')

2010-05-03 Thread Tom Lane
Andreas Gaab writes: > after an WAL-restore of our Postgres DB, we observe seemingly wrong values of > our sequences. > We have two postgres server (8.4) with pgpool in replication mode. > Recently we tested our restore procedure and played our WAL-files into the > second server after an old f