pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergei Kornilov <sk@zsrv.org>
To: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
Date: Mon, 26 Nov 2018 15:32:10 +0300
Message-ID: <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net> (raw)
In-Reply-To: <20181126002849.GD1776@paquier.xyz>
References: <E1gQwex-0001Vd-OW@gemulon.postgresql.org>
	<20181126002849.GD1776@paquier.xyz>

Hi

> The buildfarm is unhappy after this one:
> https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=culicidae&br=HEAD
>
> If I use -DEXEC_BACKEND when compiling the tests complain about a
> timeout in 003_recovery_targets. Here is what the buildfarm reports, I
> can see the failure by myself as well:
> # Postmaster PID for node "standby_6" is 26668
> # poll_query_until timed out executing this query:
> # SELECT '0/3022690'::pg_lsn <= pg_last_wal_replay_lsn()
> # expecting this output:
> # t
> # last actual query output:
> # f
> # with stderr:
> Timed out while waiting for standby to catch up at
> t/003_recovery_targets.pl line 34.

I can reproduce this and notice wrong assign settings order. For example standby_6 has
>	recovery_target_name = '$recovery_name'
>	recovery_target_xid  = '$recovery_txid'
>	recovery_target_time = '$recovery_time'
But recoveryTarget was set to RECOVERY_TARGET_XID
Without -DEXEC_BACKEND all fine.

As far as I understand the guc.c code with EXEC_BACKEND all processes uses different config processing logic. We serialize all GUC and restore at process start. And we sort GUC by name in build_guc_variables - so we restore settings in wrong order. I was afraid that the GUC system does not guarantee the order of settings...

What is preferable solution? Seems we can not simple change this logic.
I think i can reorganize all new recovery_target_* GUC into single one with format, for example, recovery_target = "xid:607" (was mentioned in patch discussion).

regards, Sergei




view thread (29+ messages)  latest in thread

Message-ID: <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net>
Permalink:  ../27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net/
Also on:    postgresql.org/message-id/27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: sk@zsrv.org, michael@paquier.xyz, peter_e@gmx.net, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf
  In-Reply-To: <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net>
  References: <E1gQwex-0001Vd-OW@gemulon.postgresql.org> <20181126002849.GD1776@paquier.xyz> <27802171543235530@iva2-6ec8f0a6115e.qloud-c.yandex.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox