|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include "access/sysattr.h"#include "access/table.h"#include "access/tableam.h"#include "catalog/namespace.h"#include "catalog/pg_type.h"#include "common/hashfn.h"#include "libpq/pqformat.h"#include "miscadmin.h"#include "parser/parsetree.h"#include "utils/acl.h"#include "utils/fmgrprotos.h"#include "utils/lsyscache.h"#include "utils/rel.h"#include "utils/snapmgr.h"#include "utils/varlena.h"
Go to the source code of this file.
Macros | |
| #define | LDELIM '(' |
| #define | RDELIM ')' |
| #define | DELIM ',' |
| #define | NTIDARGS 2 |
| Datum bttidcmp | ( | PG_FUNCTION_ARGS | ) |
Definition at line 229 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_INT32.
| Datum currtid_byrelname | ( | PG_FUNCTION_ARGS | ) |
Definition at line 417 of file tid.c.
References AccessShareLock, currtid_internal(), fb(), makeRangeVarFromNameList(), PG_GETARG_ITEMPOINTER, PG_GETARG_TEXT_PP, PG_RETURN_ITEMPOINTER, relname, table_close(), table_openrv(), and textToQualifiedNameList().
|
static |
Definition at line 337 of file tid.c.
References AccessShareLock, RewriteRule::actions, CMD_SELECT, currtid_internal(), elog, ereport, errcode(), errmsg(), ERROR, RewriteRule::event, fb(), get_tle_by_resno(), i, IS_SPECIAL_VARNO, IsA, linitial, list_length(), NameStr, RelationGetDescr, rt_fetch, Query::rtable, SelfItemPointerAttributeNumber, table_close(), table_open(), Query::targetList, TupleDescAttr(), Var::varattno, and Var::varno.
Referenced by currtid_internal().
|
static |
Definition at line 295 of file tid.c.
References ACL_SELECT, aclcheck_error(), ACLCHECK_OK, currtid_for_view(), ereport, errcode(), errmsg(), ERROR, fb(), get_namespace_name(), get_relkind_objtype(), GetLatestSnapshot(), GetUserId(), ItemPointerCopy(), palloc_object, pg_class_aclcheck(), RelationData::rd_rel, RegisterSnapshot(), RelationGetNamespace, RelationGetRelationName, RelationGetRelid, table_beginscan_tid(), table_endscan(), table_tuple_get_latest_tid(), and UnregisterSnapshot().
Referenced by currtid_byrelname(), and currtid_for_view().
| Datum hashtid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 256 of file tid.c.
References hash_any(), and PG_GETARG_ITEMPOINTER.
| Datum hashtidextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 271 of file tid.c.
References hash_any_extended(), PG_GETARG_INT64, and PG_GETARG_ITEMPOINTER.
| Datum tideq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 220 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidgt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 211 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 51 of file tid.c.
References DELIM, ereturn, errcode(), errmsg(), fb(), i, ItemPointerSet(), LDELIM, NTIDARGS, palloc_object, PG_GETARG_CSTRING, PG_RETURN_ITEMPOINTER, RDELIM, and str.
Referenced by make_tuple_from_result_row().
| Datum tidlarger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 238 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_ITEMPOINTER.
| Datum tidle | ( | PG_FUNCTION_ARGS | ) |
Definition at line 202 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidlt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 193 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 184 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_BOOL.
| Datum tidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 118 of file tid.c.
References buf, fb(), ItemPointerGetBlockNumberNoCheck(), ItemPointerGetOffsetNumberNoCheck(), PG_GETARG_ITEMPOINTER, PG_RETURN_CSTRING, pstrdup(), and snprintf.
Referenced by pgrowlocks().
| Datum tidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 138 of file tid.c.
References buf, fb(), ItemPointerSet(), palloc_object, PG_GETARG_POINTER, PG_RETURN_ITEMPOINTER, and pq_getmsgint().
| Datum tidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 159 of file tid.c.
References buf, fb(), ItemPointerGetBlockNumberNoCheck(), ItemPointerGetOffsetNumberNoCheck(), PG_GETARG_ITEMPOINTER, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), pq_sendint16(), and pq_sendint32().
| Datum tidsmaller | ( | PG_FUNCTION_ARGS | ) |
Definition at line 247 of file tid.c.
References fb(), ItemPointerCompare(), PG_GETARG_ITEMPOINTER, and PG_RETURN_ITEMPOINTER.