public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Bharani SV-forum <[email protected]>
Cc: [email protected] [email protected] <[email protected]>
Subject: Re: Qsn on Setting replication using " set session_replication_role = "
Date: Wed, 4 Dec 2024 06:29:56 -0700
Message-ID: <CAKFQuwa96VUADGXCzKn988Gd_JO=s8aeERmSyQM2UXYqw8FpjA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

On Wednesday, December 4, 2024, Bharani SV-forum <[email protected]>
wrote:

>
>
> Team
> Need help on clarification on using
> " set session_replication_role "
>
> Assume i am loggging into
> psql
> and issue
> \o output.lst
> set session_replication_role=default
> update ....
>

This seems like a bad idea.  Why would you do such a thing?


> coming out of \psql command and verifying log file
> and assume i come out of the psql session
> without
> doing set session_replication_role=replica.
>

If you logged out, the session no longer exists so anything you did to
configure the session environment is no longer relevant.


>
> what will be the impact.
> How to find out if the session replicat role is in Replica stage or local ?
>

https://www.postgresql.org/docs/current/config-setting.html

David J.


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: Qsn on Setting replication using " set session_replication_role = "
  In-Reply-To: <CAKFQuwa96VUADGXCzKn988Gd_JO=s8aeERmSyQM2UXYqw8FpjA@mail.gmail.com>

* 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