|
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 | ) |
Definition at line 186 of file pg_lsn.c.
References a, b, PG_GETARG_LSN, and PG_RETURN_INT32.
| Datum pg_lsn_eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 113 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 140 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_hash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 201 of file pg_lsn.c.
References hashint8().
| Datum pg_lsn_hash_extended | ( | PG_FUNCTION_ARGS | ) |
| Datum pg_lsn_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 64 of file pg_lsn.c.
References PG_GETARG_CSTRING, pg_lsn_in_safe(), PG_RETURN_LSN, and str.
Referenced by libpqrcv_create_slot(), and parse_subscription_options().
| XLogRecPtr pg_lsn_in_safe | ( | const char * | str, |
| Node * | escontext | ||
| ) |
Definition at line 32 of file pg_lsn.c.
References ereturn, errcode(), errmsg(), InvalidXLogRecPtr, MAXPG_LSNCOMPONENT, str, and syntax_error().
Referenced by check_recovery_target_lsn(), and pg_lsn_in().
| Datum pg_lsn_larger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 167 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_LSN.
| Datum pg_lsn_le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 149 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 131 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 219 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 280 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, snprintf, and UINT64_FORMAT.
| Datum pg_lsn_ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 122 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_BOOL.
| Datum pg_lsn_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 75 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 246 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, snprintf, and UINT64_FORMAT.
| Datum pg_lsn_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 87 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 97 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 | ) |
Definition at line 176 of file pg_lsn.c.
References PG_GETARG_LSN, and PG_RETURN_LSN.