public inbox for [email protected]  
help / color / mirror / Atom feed
From: yanliang lei <[email protected]>
To: [email protected] <[email protected]>
Subject: about pg14 new parameter in_hot_standby
Date: Sun, 22 May 2022 11:59:15 +0800 (CST)
Message-ID: <[email protected]> (raw)

in the pg14 document(https://www.postgresql.org/docs/14/runtime-config-preset.html)

in_hot_standby parameter:

Reports whether the server is currently in hot standby mode. 

When this is on, all transactions are forced to be read-only. 

Within a session, this can change only if the server is promoted to be primary. See Section 27.4 for more information.




"Within a session, this can change only if the server is promoted to be primary"--- I can not understand this statement.




I think document will tell us:

when the postgresql cluster is in the standby database role, the standby database parameter in_hot_standby value will change to on,and this in_hot_standby parameter can not been modified in the session.




I do not know what I say is correct or not.




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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: about pg14 new parameter in_hot_standby
  In-Reply-To: <[email protected]>

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

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