PostgreSQL Source Code
git master
pg_lsn.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* pg_lsn.h
4
* Declarations for operations on log sequence numbers (LSNs) of
5
* PostgreSQL.
6
*
7
*
8
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
9
* Portions Copyright (c) 1994, Regents of the University of California
10
*
11
* src/include/utils/pg_lsn.h
12
*
13
*-------------------------------------------------------------------------
14
*/
15
#ifndef PG_LSN_H
16
#define PG_LSN_H
17
18
#include "
access/xlogdefs.h
"
19
#include "
fmgr.h
"
20
21
#define DatumGetLSN(X) ((XLogRecPtr) DatumGetInt64(X))
22
#define LSNGetDatum(X) (Int64GetDatum((int64) (X)))
23
24
#define PG_GETARG_LSN(n) DatumGetLSN(PG_GETARG_DATUM(n))
25
#define PG_RETURN_LSN(x) return LSNGetDatum(x)
26
27
extern
XLogRecPtr
pg_lsn_in_internal
(
const
char
*
str
,
bool
*have_error);
28
29
#endif
/* PG_LSN_H */
fmgr.h
generate_unaccent_rules.str
str
Definition:
generate_unaccent_rules.py:277
pg_lsn_in_internal
XLogRecPtr pg_lsn_in_internal(const char *str, bool *have_error)
Definition:
pg_lsn.c:30
xlogdefs.h
XLogRecPtr
uint64 XLogRecPtr
Definition:
xlogdefs.h:21
src
include
utils
pg_lsn.h
Generated on Sat May 21 2022 18:13:25 for PostgreSQL Source Code by
1.9.1