From: Craig Ringer Date: Tue, 7 Apr 2015 09:24:40 +0000 (+0800) Subject: Document pg_xlog_wait_remote_recieve and pg_xlog_wait_remote_apply X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpguslink%28?a=commitdiff_plain;h=ae81b5cba97280bc21daa618c4a2e8a2d0f799dd;p=2ndquadrant_bdr.git Document pg_xlog_wait_remote_recieve and pg_xlog_wait_remote_apply --- diff --git a/doc/manual-functions.sgml b/doc/manual-functions.sgml index d97b65002a..a2abdb91b7 100644 --- a/doc/manual-functions.sgml +++ b/doc/manual-functions.sgml @@ -190,6 +190,42 @@ + + &bdr; + + + pg_xlog_wait_remote_apply + + pg_xlog_wait_remote_apply(lsn pg_lsn, pid integer) + + void + + Wait until the replication connection with process id pid + (or all connections if pid is 0) + in pg_stat_replication has replayed WAL up to at least + lsn. Typically used with + pg_current_xlog_insert_location() as the target LSN. + (This function was added to PostgreSQL 9.4 by the BDR patches and is not part + of the BDR extension as such.) + + + + + &bdr; + + + pg_xlog_wait_remote_receive + + pg_xlog_wait_remote_receive(lsn pg_lsn, pid integer) + + void + + Same as pg_xlog_wait_remote_receive(...), but + returns as soon as the remote confirms it has received the changes, not + necessarily applied them. + + +