pg_replication_origin_session_is_setup()

A function indicating whether a replication origin has been selected

pg_replication_origin_session_is_setup() is a system function indicating whether a replication origin has been selected in the current session.

pg_replication_origin_session_is_setup() was added in PostgreSQL 9.5.

Usage

pg_replication_origin_session_is_setup () → boolean

Change history

Examples

Basic usage example for pg_replication_origin_session_is_setup():

epp=# SELECT pg_replication_origin_session_is_setup();
 pg_replication_origin_session_is_setup 
----------------------------------------
 f
(1 row)

Categories

Logical replication, System function

See also

pg_replication_origin_session_setup(), pg_replication_origin_session_reset()