1 Apr 2012 01:58
Re: Problems with Binary Replication
Andreas <maps.on <at> gmx.net>
2012-03-31 23:58:02 GMT
2012-03-31 23:58:02 GMT
Am 31.03.2012 23:38, schrieb Tom Lane: > Andreas<maps.on <at> gmx.net> writes: >> Now I added 1 row on the master. >> Before both sequence start values were 403. >> After the insert the master shows 404 as expected but the "hot-standby" >> shows 436. > What are you doing to get it to "show" a value --- not nextval(), > presumably? > > I think that this may be the expected behavior from pre-caching of > sequence values. You would see the same thing on the master if you > were to forcibly crash and restart it. > > regards, tom lane > I checked with pgAdmin. Even with nextval() the sequence shouldn't move because AFAIK a hot-standby is readonly. The sequence on the hot-standby jumped 32 counters when I inserted a row on the master. Before the insert it had the same value as the master. Actually I stumbled over it, when I worked on a test pc to prepare some sql updates for the master. I installed there a backup from the hot-standby because I expected this should mirror the master 1:1. At least those tables where only I insert stuff.(Continue reading)

Thanks!
> regards, tom lane
>
--
Jerry Sievers
RSS Feed