Re: Parameter name standby_mode

From: Mario González Troncoso <gonzalemario(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Joachim Wieland <joe(at)mcknight(dot)de>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Parameter name standby_mode
Date: 2025-10-10 21:34:18
Message-ID: CAFsReFXq4zGj13ZEizbKK_SQS8m5oRf9j5df=DLpM5ZhoH-zWA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 10 Oct 2025 at 18:30, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> > Joachim Wieland wrote:
> >> If no primary_conninfo variable is set explicitly in the configuration
> >> file, check the environment variables. If the environment variable is
> >> not set, don't try to establish a connection.
>
> > The environment variables in question are the libpq environment
> > variables like PGHOST, PGPORT. The server shouldn't need to know about
> > them.
>
> Even more to the point is that some of them, like PGPORT, are highly
> likely to be set in a server's environment to point to the server
> itself. It would be extremely dangerous to automatically try to start
> replication just because we find those set. In fact, I would argue that
> we should fix things so that any such variables inherited from the
> server environment are intentionally *NOT* used for making SR
> connections.
>

I found this at
https://wiki.postgresql.org/wiki/Todo#Standby_server_mode and I know
it's been discussed *a long* time ago.

I'm not sure if this is still required but at the moment, I'm having a
look. Were you guys discussing if variables like PGHOST should be
required in the connection string for the WAL receiver?

> regards, tom lane
>
>

--
https://www.linkedin.com/in/gonzalemario

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeremy Schneider 2025-10-10 21:59:59 Re: another autovacuum scheduling thread
Previous Message Bryan Green 2025-10-10 21:20:13 Re: Buf fix: update-po for PGXS does not work