aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-02-19 10:06:59 -0500
committerRobert Haas <rhaas@postgresql.org>2014-02-19 10:06:59 -0500
commit694e3d139a9d090c58494428bebfadad216419da (patch)
tree80d2d1acb1e2cb584597a6fc4560ebbf97250574 /src/include/postgres.h
parent844a28a9dd1a48045ad1db9246da5e2783c9bd40 (diff)
downloadpostgresql-694e3d139a9d090c58494428bebfadad216419da.tar.gz
postgresql-694e3d139a9d090c58494428bebfadad216419da.zip
Further code review for pg_lsn data type.
Change input function error messages to be more consistent with what is done elsewhere. Remove a bunch of redundant type casts, so that the compiler will warn us if we screw up. Don't pass LSNs by value on platforms where a Datum is only 32 bytes, per buildfarm. Move macros for packing and unpacking LSNs to pg_lsn.h so that we can include access/xlogdefs.h, to avoid an unsatisfied dependency on XLogRecPtr.
Diffstat (limited to 'src/include/postgres.h')
-rw-r--r--src/include/postgres.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/include/postgres.h b/src/include/postgres.h
index c8b311fa22e..a8a206d988b 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -484,20 +484,6 @@ typedef Datum *DatumPtr;
#define ObjectIdGetDatum(X) ((Datum) SET_4_BYTES(X))
/*
- * DatumGetLSN
- * Returns PostgreSQL log sequence number of a datum.
- */
-
-#define DatumGetLSN(X) ((XLogRecPtr) GET_8_BYTES(X))
-
-/*
- * LSNGetDatum
- * Returns datum representation for a PostgreSQL log sequence number.
- */
-
-#define LSNGetDatum(X) ((Datum) SET_8_BYTES(X))
-
-/*
* DatumGetTransactionId
* Returns transaction identifier value of a datum.
*/