|
|
|
@ -17228,7 +17228,8 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
in <xref linkend="functions-replication-table"> are for |
|
|
|
|
controlling and interacting with replication features. |
|
|
|
|
See <xref linkend="streaming-replication">, |
|
|
|
|
<xref linkend="streaming-replication-slots">, <xref linkend="replication-origins"> |
|
|
|
|
<xref linkend="streaming-replication-slots">, and |
|
|
|
|
<xref linkend="replication-origins"> |
|
|
|
|
for information about the underlying features. Use of these |
|
|
|
|
functions is restricted to superusers. |
|
|
|
|
</para> |
|
|
|
@ -17239,9 +17240,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
The functions described in <xref linkend="functions-snapshot-synchronization">, <xref |
|
|
|
|
linkend="functions-recovery-control">, and <xref |
|
|
|
|
linkend="functions-admin-backup"> are also relevant for replication. |
|
|
|
|
The functions described in |
|
|
|
|
<xref linkend="functions-admin-backup">, |
|
|
|
|
<xref linkend="functions-recovery-control">, and |
|
|
|
|
<xref linkend="functions-snapshot-synchronization"> |
|
|
|
|
are also relevant for replication. |
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
<table id="functions-replication-table"> |
|
|
|
@ -17401,11 +17404,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
<literal><function>pg_replication_origin_create(<parameter>node_name</parameter> <type>text</type>)</function></literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
<parameter>internal_id</parameter> <type>oid</type> |
|
|
|
|
<type>oid</type> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Create a replication origin with the passed in external |
|
|
|
|
name, and create an internal id for it. |
|
|
|
|
Create a replication origin with the given external |
|
|
|
|
name, and return the internal id assigned to it. |
|
|
|
|
</entry> |
|
|
|
|
</row> |
|
|
|
|
|
|
|
|
@ -17420,7 +17423,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
void |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Delete a previously created replication origin, including the |
|
|
|
|
Delete a previously created replication origin, including any |
|
|
|
|
associated replay progress. |
|
|
|
|
</entry> |
|
|
|
|
</row> |
|
|
|
@ -17433,10 +17436,10 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
<literal><function>pg_replication_origin_oid(<parameter>node_name</parameter> <type>text</type>)</function></literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
<parameter>internal_id</parameter> <type>oid</type> |
|
|
|
|
<type>oid</type> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Lookup replication origin by name and return the internal id. If no |
|
|
|
|
Lookup a replication origin by name and return the internal id. If no |
|
|
|
|
corresponding replication origin is found an error is thrown. |
|
|
|
|
</entry> |
|
|
|
|
</row> |
|
|
|
@ -17452,7 +17455,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
void |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Configure the current session to be replaying from the passed in |
|
|
|
|
Mark the current session as replaying from the given |
|
|
|
|
origin, allowing replay progress to be tracked. Use |
|
|
|
|
<function>pg_replication_origin_session_reset</function> to revert. |
|
|
|
|
Can only be used if no previous origin is configured. |
|
|
|
@ -17483,7 +17486,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
<literal><function>pg_replication_origin_session_is_setup()</function></literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
bool |
|
|
|
|
<type>bool</type> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Has a replication origin been configured in the current session? |
|
|
|
@ -17498,7 +17501,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
<literal><function>pg_replication_origin_session_progress(<parameter>flush</parameter> <type>bool</type>)</function></literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
pg_lsn |
|
|
|
|
<type>pg_lsn</type> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Return the replay position for the replication origin configured in |
|
|
|
@ -17519,8 +17522,8 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
void |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Mark the current transaction to be replaying a transaction that has |
|
|
|
|
committed at the passed in <acronym>LSN</acronym> and timestamp. Can |
|
|
|
|
Mark the current transaction as replaying a transaction that has |
|
|
|
|
committed at the given <acronym>LSN</acronym> and timestamp. Can |
|
|
|
|
only be called when a replication origin has previously been |
|
|
|
|
configured using |
|
|
|
|
<function>pg_replication_origin_session_setup()</function>. |
|
|
|
@ -17554,7 +17557,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
void |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Set replication progress for the passed in node to the passed in |
|
|
|
|
Set replication progress for the given node to the given |
|
|
|
|
position. This primarily is useful for setting up the initial position |
|
|
|
|
or a new position after configuration changes and similar. Be aware |
|
|
|
|
that careless use of this function can lead to inconsistently |
|
|
|
@ -17570,10 +17573,10 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup()); |
|
|
|
|
<literal><function>pg_replication_origin_progress(<parameter>node_name</parameter> <type>text</type>, <parameter>flush</parameter> <type>bool</type>)</function></literal> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
pg_lsn |
|
|
|
|
<type>pg_lsn</type> |
|
|
|
|
</entry> |
|
|
|
|
<entry> |
|
|
|
|
Return the replay position for the passed in replication origin. The |
|
|
|
|
Return the replay position for the given replication origin. The |
|
|
|
|
parameter <parameter>flush</parameter> determines whether the |
|
|
|
|
corresponding local transaction will be guaranteed to have been |
|
|
|
|
flushed to disk or not. |
|
|
|
|