aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-02-19 09:34:15 -0500
committerRobert Haas <rhaas@postgresql.org>2014-02-19 09:34:15 -0500
commit844a28a9dd1a48045ad1db9246da5e2783c9bd40 (patch)
tree1c392fd2b6891b62355f2a1e0d99a257547c24e9 /src/include/postgres.h
parent7d03a83f4d0736ba869fa6f93973f7623a27038a (diff)
downloadpostgresql-844a28a9dd1a48045ad1db9246da5e2783c9bd40.tar.gz
postgresql-844a28a9dd1a48045ad1db9246da5e2783c9bd40.zip
pg_lsn macro naming and type behavior revisions.
Change pg_lsn_mi so that it can return negative values when subtracting LSNs, and clean up some perhaps ill-considered macro names.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index e72d5fca2b1..c8b311fa22e 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -484,18 +484,18 @@ typedef Datum *DatumPtr;
#define ObjectIdGetDatum(X) ((Datum) SET_4_BYTES(X))
/*
- * DatumGetPgLsn
+ * DatumGetLSN
* Returns PostgreSQL log sequence number of a datum.
*/
-#define DatumGetPgLsn(X) ((XLogRecPtr) GET_8_BYTES(X))
+#define DatumGetLSN(X) ((XLogRecPtr) GET_8_BYTES(X))
/*
- * PG_LSNGetDatum
+ * LSNGetDatum
* Returns datum representation for a PostgreSQL log sequence number.
*/
-#define PgLsnGetDatum(X) ((Datum) SET_8_BYTES(X))
+#define LSNGetDatum(X) ((Datum) SET_8_BYTES(X))
/*
* DatumGetTransactionId