PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "libpq/pqformat.h"
#include "utils/fmgrprotos.h"
#include "utils/numeric.h"
#include "utils/pg_lsn.h"
Go to the source code of this file.
Macros | |
#define | MAXPG_LSNLEN 17 |
#define | MAXPG_LSNCOMPONENT 8 |
Datum pg_lsn_cmp | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_eq | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_ge | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_gt | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_hash | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_hash_extended | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 63 of file pg_lsn.c.
References ereturn, errcode(), errmsg(), PG_GETARG_CSTRING, pg_lsn_in_internal(), PG_RETURN_LSN, and str.
Referenced by libpqrcv_create_slot(), and parse_subscription_options().
XLogRecPtr pg_lsn_in_internal | ( | const char * | str, |
bool * | have_error | ||
) |
Definition at line 29 of file pg_lsn.c.
References Assert, InvalidXLogRecPtr, MAXPG_LSNCOMPONENT, and str.
Referenced by check_recovery_target_lsn(), and pg_lsn_in().
Datum pg_lsn_larger | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_le | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_lt | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 224 of file pg_lsn.c.
References buf, CStringGetDatum(), DirectFunctionCall3, Int32GetDatum(), numeric_in(), ObjectIdGetDatum(), PG_GETARG_LSN, snprintf, and UINT64_FORMAT.
Referenced by pg_wal_lsn_diff().
Datum pg_lsn_mii | ( | PG_FUNCTION_ARGS | ) |
Definition at line 285 of file pg_lsn.c.
References buf, CStringGetDatum(), DirectFunctionCall1, DirectFunctionCall2, DirectFunctionCall3, ereport, errcode(), errmsg(), ERROR, Int32GetDatum(), numeric_in(), numeric_is_nan(), numeric_pg_lsn(), numeric_sub(), NumericGetDatum(), ObjectIdGetDatum(), PG_GETARG_LSN, PG_GETARG_NUMERIC, res, snprintf, and UINT64_FORMAT.
Datum pg_lsn_ne | ( | PG_FUNCTION_ARGS | ) |
Datum pg_lsn_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 80 of file pg_lsn.c.
References buf, LSN_FORMAT_ARGS, MAXPG_LSNLEN, PG_GETARG_LSN, PG_RETURN_CSTRING, pstrdup(), and snprintf.
Datum pg_lsn_pli | ( | PG_FUNCTION_ARGS | ) |
Definition at line 251 of file pg_lsn.c.
References buf, CStringGetDatum(), DirectFunctionCall1, DirectFunctionCall2, DirectFunctionCall3, ereport, errcode(), errmsg(), ERROR, Int32GetDatum(), numeric_add(), numeric_in(), numeric_is_nan(), numeric_pg_lsn(), NumericGetDatum(), ObjectIdGetDatum(), PG_GETARG_LSN, PG_GETARG_NUMERIC, res, snprintf, and UINT64_FORMAT.
Datum pg_lsn_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 92 of file pg_lsn.c.
References buf, PG_GETARG_POINTER, PG_RETURN_LSN, and pq_getmsgint64().
Datum pg_lsn_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 102 of file pg_lsn.c.
References buf, PG_GETARG_LSN, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint64().
Datum pg_lsn_smaller | ( | PG_FUNCTION_ARGS | ) |