Hi I hope, so this patch fix it
Regards Pavel 2014-03-04 21:00 GMT+01:00 Pavel Stehule <pavel.steh...@gmail.com>: > > > > 2014-03-04 20:20 GMT+01:00 Alvaro Herrera <alvhe...@2ndquadrant.com>: > > Pavel Stehule escribió: >> > 2014-03-04 19:12 GMT+01:00 Alvaro Herrera <alvhe...@2ndquadrant.com>: >> > >> > > Pavel Stehule escribió: >> > > > Hello >> > > > >> > > > updated version - a precheck is very simple, and I what I tested it >> is >> > > > enough >> > > >> > > Okay, thanks. I pushed it after some more editorialization. I don't >> > > think I broke anything, but please have a look. >> > >> > It looks well >> >> Coypu is showing a strange failure though: >> >> >> http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=coypu&dt=2014-03-04%2018%3A22%3A31 >> select make_interval(secs := 'inf'); >> ! make_interval >> ! --------------------- >> ! @ 0.000001 secs ago >> ! (1 row) >> >> I realize that we have some hacks in float4in and float8in to deal with >> these portability issues ... Maybe the fix is just take out the test. >> >> > I have no idea, how to fix it now and have to leave a office. Tomorrow > I'll try to fix it. > > Regards > > Pavel > > > >> -- >> Álvaro Herrera http://www.2ndQuadrant.com/ >> PostgreSQL Development, 24x7 Support, Training & Services >> > >
commit 956685f82b6983ff17e6a39bd386b11f554715a8 Author: Heikki Linnakangas <heikki.linnakan...@iki.fi> Date: Wed Mar 5 14:41:55 2014 +0200 Do wal_level and hot standby checks when doing crash-then-archive recovery. CheckRequiredParameterValues() should perform the checks if archive recovery was requested, even if we are going to perform crash recovery first. Reported by Kyotaro HORIGUCHI. Backpatch to 9.2, like the crash-then-archive recovery mode. diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index e3d5e10..cdbe305 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6187,7 +6187,7 @@ CheckRequiredParameterValues(void) * For archive recovery, the WAL must be generated with at least 'archive' * wal_level. */ - if (InArchiveRecovery && ControlFile->wal_level == WAL_LEVEL_MINIMAL) + if (ArchiveRecoveryRequested && ControlFile->wal_level == WAL_LEVEL_MINIMAL) { ereport(WARNING, (errmsg("WAL was generated with wal_level=minimal, data may be missing"), @@ -6198,7 +6198,7 @@ CheckRequiredParameterValues(void) * For Hot Standby, the WAL must be generated with 'hot_standby' mode, and * we must have at least as many backend slots as the primary. */ - if (InArchiveRecovery && EnableHotStandby) + if (ArchiveRecoveryRequested && EnableHotStandby) { if (ControlFile->wal_level < WAL_LEVEL_HOT_STANDBY) ereport(ERROR,
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers