PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include "access/multixact.h"
#include "access/transam.h"
#include "access/xact.h"
#include "libpq/pqformat.h"
#include "utils/builtins.h"
#include "utils/xid8.h"
Go to the source code of this file.
Macros | |
#define | PG_GETARG_COMMANDID(n) DatumGetCommandId(PG_GETARG_DATUM(n)) |
#define | PG_RETURN_COMMANDID(x) return CommandIdGetDatum(x) |
Functions | |
Datum | xidin (PG_FUNCTION_ARGS) |
Datum | xidout (PG_FUNCTION_ARGS) |
Datum | xidrecv (PG_FUNCTION_ARGS) |
Datum | xidsend (PG_FUNCTION_ARGS) |
Datum | xideq (PG_FUNCTION_ARGS) |
Datum | xidneq (PG_FUNCTION_ARGS) |
Datum | xid_age (PG_FUNCTION_ARGS) |
Datum | mxid_age (PG_FUNCTION_ARGS) |
int | xidComparator (const void *arg1, const void *arg2) |
Datum | xid8toxid (PG_FUNCTION_ARGS) |
Datum | xid8in (PG_FUNCTION_ARGS) |
Datum | xid8out (PG_FUNCTION_ARGS) |
Datum | xid8recv (PG_FUNCTION_ARGS) |
Datum | xid8send (PG_FUNCTION_ARGS) |
Datum | xid8eq (PG_FUNCTION_ARGS) |
Datum | xid8ne (PG_FUNCTION_ARGS) |
Datum | xid8lt (PG_FUNCTION_ARGS) |
Datum | xid8gt (PG_FUNCTION_ARGS) |
Datum | xid8le (PG_FUNCTION_ARGS) |
Datum | xid8ge (PG_FUNCTION_ARGS) |
Datum | xid8cmp (PG_FUNCTION_ARGS) |
Datum | cidin (PG_FUNCTION_ARGS) |
Datum | cidout (PG_FUNCTION_ARGS) |
Datum | cidrecv (PG_FUNCTION_ARGS) |
Datum | cidsend (PG_FUNCTION_ARGS) |
Datum | cideq (PG_FUNCTION_ARGS) |
#define PG_GETARG_COMMANDID | ( | n | ) | DatumGetCommandId(PG_GETARG_DATUM(n)) |
#define PG_RETURN_COMMANDID | ( | x | ) | return CommandIdGetDatum(x) |
Datum cideq | ( | PG_FUNCTION_ARGS | ) |
Datum cidin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 271 of file xid.c.
References PG_GETARG_CSTRING, PG_RETURN_COMMANDID, and generate_unaccent_rules::str.
Datum cidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 282 of file xid.c.
References palloc(), PG_GETARG_COMMANDID, PG_RETURN_CSTRING, and snprintf.
Datum cidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 295 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_COMMANDID, and pq_getmsgint().
Datum cidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 306 of file xid.c.
References buf, PG_GETARG_COMMANDID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().
Datum mxid_age | ( | PG_FUNCTION_ARGS | ) |
Definition at line 117 of file xid.c.
References MultiXactIdIsValid, now(), PG_GETARG_TRANSACTIONID, PG_RETURN_INT32, and ReadNextMultiXactId().
Datum xid8cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 250 of file xid.c.
References FullTransactionIdEquals, FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_INT32.
Datum xid8eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 196 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 241 of file xid.c.
References FullTransactionIdFollowsOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 223 of file xid.c.
References FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 157 of file xid.c.
References FullTransactionIdFromU64(), PG_GETARG_CSTRING, PG_RETURN_FULLTRANSACTIONID, pg_strtouint64(), and generate_unaccent_rules::str.
Datum xid8le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 232 of file xid.c.
References FullTransactionIdPrecedesOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 214 of file xid.c.
References FullTransactionIdPrecedes, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 205 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 165 of file xid.c.
References palloc(), PG_GETARG_FULLTRANSACTIONID, PG_RETURN_CSTRING, snprintf, U64FromFullTransactionId, and UINT64_FORMAT.
Datum xid8recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file xid.c.
References buf, FullTransactionIdFromU64(), PG_GETARG_POINTER, PG_RETURN_FULLTRANSACTIONID, pq_getmsgint64(), and value.
Datum xid8send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 185 of file xid.c.
References buf, PG_GETARG_FULLTRANSACTIONID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendint64(), and U64FromFullTransactionId.
Datum xid8toxid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 149 of file xid.c.
References PG_GETARG_FULLTRANSACTIONID, PG_RETURN_TRANSACTIONID, and XidFromFullTransactionId.
Datum xid_age | ( | PG_FUNCTION_ARGS | ) |
Definition at line 101 of file xid.c.
References GetStableLatestTransactionId(), now(), PG_GETARG_TRANSACTIONID, PG_RETURN_INT32, and TransactionIdIsNormal.
int xidComparator | ( | const void * | arg1, |
const void * | arg2 | ||
) |
Definition at line 136 of file xid.c.
Referenced by ProcArrayApplyRecoveryInfo(), ReorderBufferCopySnap(), SerializeTransactionState(), SnapBuildBuildSnapshot(), SnapBuildInitialSnapshot(), and TransactionIdInArray().
Datum xideq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 77 of file xid.c.
References PG_GETARG_TRANSACTIONID, PG_RETURN_BOOL, and TransactionIdEquals.
Datum xidin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 31 of file xid.c.
References PG_GETARG_CSTRING, PG_RETURN_TRANSACTIONID, and generate_unaccent_rules::str.
Datum xidneq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 89 of file xid.c.
References PG_GETARG_TRANSACTIONID, PG_RETURN_BOOL, and TransactionIdEquals.
Datum xidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 39 of file xid.c.
References palloc(), PG_GETARG_TRANSACTIONID, PG_RETURN_CSTRING, and snprintf.
Datum xidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 52 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_TRANSACTIONID, and pq_getmsgint().
Datum xidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 63 of file xid.c.
References buf, PG_GETARG_TRANSACTIONID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().