mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add a pg_lsn data type, to represent an LSN.
Robert Haas and Michael Paquier
This commit is contained in:
@ -483,6 +483,20 @@ typedef Datum *DatumPtr;
|
||||
|
||||
#define ObjectIdGetDatum(X) ((Datum) SET_4_BYTES(X))
|
||||
|
||||
/*
|
||||
* DatumGetPgLsn
|
||||
* Returns PostgreSQL log sequence number of a datum.
|
||||
*/
|
||||
|
||||
#define DatumGetPgLsn(X) ((XLogRecPtr) GET_8_BYTES(X))
|
||||
|
||||
/*
|
||||
* PG_LSNGetDatum
|
||||
* Returns datum representation for a PostgreSQL log sequence number.
|
||||
*/
|
||||
|
||||
#define PgLsnGetDatum(X) ((Datum) SET_8_BYTES(X))
|
||||
|
||||
/*
|
||||
* DatumGetTransactionId
|
||||
* Returns transaction identifier value of a datum.
|
||||
|
Reference in New Issue
Block a user