PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include "access/multixact.h"
#include "access/transam.h"
#include "access/xact.h"
#include "common/hashfn.h"
#include "common/int.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) |
#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 347 of file xid.c.
References PG_GETARG_CSTRING, PG_RETURN_COMMANDID, str, and uint32in_subr().
Datum cidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 360 of file xid.c.
References palloc(), PG_GETARG_COMMANDID, PG_RETURN_CSTRING, and snprintf.
Datum cidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 373 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_COMMANDID, and pq_getmsgint().
Datum cidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 384 of file xid.c.
References buf, PG_GETARG_COMMANDID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().
Datum hashcid | ( | PG_FUNCTION_ARGS | ) |
Datum hashcidextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 410 of file xid.c.
References hash_uint32_extended(), PG_GETARG_COMMANDID, and PG_GETARG_INT64.
Datum hashxid | ( | PG_FUNCTION_ARGS | ) |
Datum hashxid8 | ( | PG_FUNCTION_ARGS | ) |
Datum hashxid8extended | ( | PG_FUNCTION_ARGS | ) |
Datum hashxidextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 108 of file xid.c.
References hash_uint32_extended(), PG_GETARG_INT64, and PG_GETARG_TRANSACTIONID.
Datum mxid_age | ( | PG_FUNCTION_ARGS | ) |
Definition at line 133 of file xid.c.
References MultiXactIdIsValid, now(), PG_GETARG_TRANSACTIONID, PG_RETURN_INT32, and ReadNextMultiXactId().
Datum xid8_larger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 316 of file xid.c.
References FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_FULLTRANSACTIONID.
Datum xid8_smaller | ( | PG_FUNCTION_ARGS | ) |
Definition at line 328 of file xid.c.
References FullTransactionIdPrecedes, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_FULLTRANSACTIONID.
Datum xid8cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 290 of file xid.c.
References FullTransactionIdEquals, FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_INT32.
Datum xid8eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 236 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 281 of file xid.c.
References FullTransactionIdFollowsOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 263 of file xid.c.
References FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 of file xid.c.
References FullTransactionIdFromU64(), PG_GETARG_CSTRING, PG_RETURN_FULLTRANSACTIONID, str, and uint64in_subr().
Datum xid8le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 272 of file xid.c.
References FullTransactionIdPrecedesOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 254 of file xid.c.
References FullTransactionIdPrecedes, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 245 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 205 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 215 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 225 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 187 of file xid.c.
References PG_GETARG_FULLTRANSACTIONID, PG_RETURN_TRANSACTIONID, and XidFromFullTransactionId.
Datum xid_age | ( | PG_FUNCTION_ARGS | ) |
Definition at line 117 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 152 of file xid.c.
References pg_cmp_u32().
Referenced by ReorderBufferCopySnap(), ReorderBufferGetCatalogChangesXacts(), SerializeTransactionState(), SnapBuildBuildSnapshot(), SnapBuildInitialSnapshot(), SnapBuildXidHasCatalogChanges(), and TransactionIdInArray().
Datum xideq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 81 of file xid.c.
References PG_GETARG_TRANSACTIONID, PG_RETURN_BOOL, and TransactionIdEquals.
Datum xidin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 33 of file xid.c.
References PG_GETARG_CSTRING, PG_RETURN_TRANSACTIONID, str, and uint32in_subr().
int xidLogicalComparator | ( | const void * | arg1, |
const void * | arg2 | ||
) |
Definition at line 169 of file xid.c.
References Assert, TransactionIdIsNormal, and TransactionIdPrecedes().
Referenced by ProcArrayApplyRecoveryInfo().
Datum xidneq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 93 of file xid.c.
References PG_GETARG_TRANSACTIONID, PG_RETURN_BOOL, and TransactionIdEquals.
Datum xidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 43 of file xid.c.
References palloc(), PG_GETARG_TRANSACTIONID, PG_RETURN_CSTRING, and snprintf.
Datum xidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 56 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_TRANSACTIONID, and pq_getmsgint().
Datum xidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 67 of file xid.c.
References buf, PG_GETARG_TRANSACTIONID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().