Re: Qsn on Setting replication using " set session_replication_role = "

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Bharani SV-forum <esteembsv-forum(at)yahoo(dot)com>
Cc: "FN_pgsql-general(at)postgresql(dot)org LN_pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Qsn on Setting replication using " set session_replication_role = "
Date: 2024-12-04 13:29:56
Message-ID: CAKFQuwa96VUADGXCzKn988Gd_JO=s8aeERmSyQM2UXYqw8FpjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, December 4, 2024, Bharani SV-forum <esteembsv-forum(at)yahoo(dot)com>
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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2024-12-04 14:49:33 Re: Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X
Previous Message Bolaji Wahab 2024-12-04 13:22:12 Clarification of behaviour when dropping partitions