summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorMagnus Hagander2012-03-04 11:15:24 +0000
committerMagnus Hagander2012-03-04 11:22:38 +0000
commitbc5ac3686580079bd4ea26bf027178786d77a9ee (patch)
treee8ba991d3227149fb636a1f0f00d6c8597035ac9 /src/include/access
parent0e5e167aaea4ceb355a6e20eec96c4f7d05527ab (diff)
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')
-rw-r--r--src/include/access/xlog_internal.h1
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 */