primary_conninfo is a configuration parameter specifying the upstream server for a streaming replication standby to connect to.
primary_conninfo was added in PostgreSQL 9.0.
The default value for
'' (empty string).
The current setting for
primary_conninfo (as used by the walreceiver) is contained in the
conninfo column of the system view
pg_stat_wal_receiver (PostgreSQL 9.6 and later). Note however that the
conninfo column will also contain any
Validity on a primary server
It is possible to set
primary_conninfo on a primary server (i.e. a server which is not in recovery), but it will have no effect.
Note that following promotion of a standby server to primary, the server's
primary_conninfo will not be reset, though it will not be used as long as the server is a primary.