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) |
#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 325 of file xid.c.
References PG_GETARG_CSTRING, PG_RETURN_COMMANDID, generate_unaccent_rules::str, and uint32in_subr().
Datum cidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 338 of file xid.c.
References palloc(), PG_GETARG_COMMANDID, PG_RETURN_CSTRING, and snprintf.
Datum cidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 351 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_COMMANDID, and pq_getmsgint().
Datum cidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 362 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 119 of file xid.c.
References MultiXactIdIsValid, now(), PG_GETARG_TRANSACTIONID, PG_RETURN_INT32, and ReadNextMultiXactId().
Datum xid8_larger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 294 of file xid.c.
References FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_FULLTRANSACTIONID.
Datum xid8_smaller | ( | PG_FUNCTION_ARGS | ) |
Definition at line 306 of file xid.c.
References FullTransactionIdPrecedes, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_FULLTRANSACTIONID.
Datum xid8cmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 280 of file xid.c.
References FullTransactionIdEquals, FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_INT32.
Datum xid8eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 226 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 271 of file xid.c.
References FullTransactionIdFollowsOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 253 of file xid.c.
References FullTransactionIdFollows, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 185 of file xid.c.
References FullTransactionIdFromU64(), PG_GETARG_CSTRING, PG_RETURN_FULLTRANSACTIONID, generate_unaccent_rules::str, and uint64in_subr().
Datum xid8le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 262 of file xid.c.
References FullTransactionIdPrecedesOrEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 244 of file xid.c.
References FullTransactionIdPrecedes, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 235 of file xid.c.
References FullTransactionIdEquals, PG_GETARG_FULLTRANSACTIONID, and PG_RETURN_BOOL.
Datum xid8out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 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 205 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 215 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 177 of file xid.c.
References PG_GETARG_FULLTRANSACTIONID, PG_RETURN_TRANSACTIONID, and XidFromFullTransactionId.
Datum xid_age | ( | PG_FUNCTION_ARGS | ) |
Definition at line 103 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 138 of file xid.c.
Referenced by ReorderBufferCopySnap(), ReorderBufferGetCatalogChangesXacts(), SerializeTransactionState(), SnapBuildBuildSnapshot(), SnapBuildInitialSnapshot(), SnapBuildXidHasCatalogChanges(), and TransactionIdInArray().
Datum xideq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 79 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, generate_unaccent_rules::str, and uint32in_subr().
int xidLogicalComparator | ( | const void * | arg1, |
const void * | arg2 | ||
) |
Definition at line 159 of file xid.c.
References Assert(), TransactionIdIsNormal, and TransactionIdPrecedes().
Referenced by ProcArrayApplyRecoveryInfo().
Datum xidneq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 91 of file xid.c.
References PG_GETARG_TRANSACTIONID, PG_RETURN_BOOL, and TransactionIdEquals.
Datum xidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 41 of file xid.c.
References palloc(), PG_GETARG_TRANSACTIONID, PG_RETURN_CSTRING, and snprintf.
Datum xidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 54 of file xid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_TRANSACTIONID, and pq_getmsgint().
Datum xidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 65 of file xid.c.
References buf, PG_GETARG_TRANSACTIONID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().