pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergei Kornilov <sk@zsrv.org>
To: Stefan Sonnenberg-Carstens <stefan.sonnenberg.carstens@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16215: Restore failes if number of workers in postgresql.conf is lower than on source system
Date: Fri, 17 Jan 2020 12:45:36 +0300
Message-ID: <3736031579254336@vla5-dcf36e533bf7.qloud-c.yandex.net> (raw)
In-Reply-To: <CAJQkx-WhckT2zpD0WbG6uAOvo0rcoaROKX+MJiLScXcP3K997A@mail.gmail.com>
References: <16215-36f9d5763709c11c@postgresql.org>
	<2960851579247932@sas2-ace8bd7a4730.qloud-c.yandex.net>
	<CAJQkx-WhckT2zpD0WbG6uAOvo0rcoaROKX+MJiLScXcP3K997A@mail.gmail.com>

Hello

> as far as I understand these restrictions apply when hot_standby is set to on AND a recovery.conf is missing.

When hot_standby is set to on AND a recovery.conf is PRESENT
Here is: https://github.com/postgres/postgres/blob/REL_10_STABLE/src/backend/access/transam/xlog.c#L6185
ArchiveRecoveryRequested is set if we found recovery.conf (see readRecoveryCommandFile)

> I can confirm that hot_standby is commented out - is this setting on by default?

Yes, in postgresql 10 and newer.

regards, Sergei





view thread (5+ messages)  latest in thread

Message-ID: <3736031579254336@vla5-dcf36e533bf7.qloud-c.yandex.net>
Permalink:  ../3736031579254336@vla5-dcf36e533bf7.qloud-c.yandex.net/
Also on:    postgresql.org/message-id/3736031579254336@vla5-dcf36e533bf7.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-bugs@postgresql.org
  Cc: sk@zsrv.org, stefan.sonnenberg.carstens@gmail.com
  Subject: Re: BUG #16215: Restore failes if number of workers in postgresql.conf is lower than on source system
  In-Reply-To: <3736031579254336@vla5-dcf36e533bf7.qloud-c.yandex.net>
  References: <16215-36f9d5763709c11c@postgresql.org> <2960851579247932@sas2-ace8bd7a4730.qloud-c.yandex.net> <CAJQkx-WhckT2zpD0WbG6uAOvo0rcoaROKX+MJiLScXcP3K997A@mail.gmail.com> <3736031579254336@vla5-dcf36e533bf7.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