diff options
author | Magnus Hagander <magnus@hagander.net> | 2012-03-04 12:15:24 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2012-03-04 12:22:38 +0100 |
commit | bc5ac3686580079bd4ea26bf027178786d77a9ee (patch) | |
tree | e8ba991d3227149fb636a1f0f00d6c8597035ac9 /src/include/access/xlog_internal.h | |
parent | 0e5e167aaea4ceb355a6e20eec96c4f7d05527ab (diff) | |
download | postgresql-bc5ac3686580079bd4ea26bf027178786d77a9ee.tar.gz postgresql-bc5ac3686580079bd4ea26bf027178786d77a9ee.zip |
Add function pg_xlog_location_diff to help comparisons
Comparing two xlog locations are useful for example when calculating
replication lag.
Euler Taveira de Oliveira, reviewed by Fujii Masao, and some cleanups
from me
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r-- | src/include/access/xlog_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index b81c1568818..c079a9aa8f5 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -281,5 +281,6 @@ extern Datum pg_is_in_recovery(PG_FUNCTION_ARGS); extern Datum pg_xlog_replay_pause(PG_FUNCTION_ARGS); extern Datum pg_xlog_replay_resume(PG_FUNCTION_ARGS); extern Datum pg_is_xlog_replay_paused(PG_FUNCTION_ARGS); +extern Datum pg_xlog_location_diff(PG_FUNCTION_ARGS); #endif /* XLOG_INTERNAL_H */ |