Search Postgresql Archives

Re: Check that streaming replica received all data after master shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vladimir Borodin wrote:

> I’m not sure that these 104 bytes will always be 104 bytes to have a
> strict equality while checking. Could it change in the future?

There is no promise that WAL record format stays unchanged.  Sometimes
we change a WAL record in a minor release.

> Or is there a better way to understand that streaming replica received
> all data after master shutdown? The check that pg_xlog_location_diff
> returns 104 bytes seems a bit strange.

I guess you could pg_xlogdump the difference and verify that it is a
shutdown checkpoint record.  As far as I remember there should always be
one at the end of recovery.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux