PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include <limits.h>
#include "catalog/pg_type.h"
#include "common/int.h"
#include "libpq/pqformat.h"
#include "nodes/miscnodes.h"
#include "nodes/value.h"
#include "utils/array.h"
#include "utils/builtins.h"
Go to the source code of this file.
Macros | |
#define | OidVectorSize(n) (offsetof(oidvector, values) + (n) * sizeof(Oid)) |
Functions | |
Datum | oidin (PG_FUNCTION_ARGS) |
Datum | oidout (PG_FUNCTION_ARGS) |
Datum | oidrecv (PG_FUNCTION_ARGS) |
Datum | oidsend (PG_FUNCTION_ARGS) |
oidvector * | buildoidvector (const Oid *oids, int n) |
Datum | oidvectorin (PG_FUNCTION_ARGS) |
Datum | oidvectorout (PG_FUNCTION_ARGS) |
Datum | oidvectorrecv (PG_FUNCTION_ARGS) |
Datum | oidvectorsend (PG_FUNCTION_ARGS) |
Oid | oidparse (Node *node) |
int | oid_cmp (const void *p1, const void *p2) |
Datum | oideq (PG_FUNCTION_ARGS) |
Datum | oidne (PG_FUNCTION_ARGS) |
Datum | oidlt (PG_FUNCTION_ARGS) |
Datum | oidle (PG_FUNCTION_ARGS) |
Datum | oidge (PG_FUNCTION_ARGS) |
Datum | oidgt (PG_FUNCTION_ARGS) |
Datum | oidlarger (PG_FUNCTION_ARGS) |
Datum | oidsmaller (PG_FUNCTION_ARGS) |
Datum | oidvectoreq (PG_FUNCTION_ARGS) |
Datum | oidvectorne (PG_FUNCTION_ARGS) |
Datum | oidvectorlt (PG_FUNCTION_ARGS) |
Datum | oidvectorle (PG_FUNCTION_ARGS) |
Datum | oidvectorge (PG_FUNCTION_ARGS) |
Datum | oidvectorgt (PG_FUNCTION_ARGS) |
Definition at line 87 of file oid.c.
References oidvector::dataoffset, oidvector::dim1, oidvector::elemtype, oidvector::lbound1, oidvector::ndim, OidVectorSize, palloc0(), SET_VARSIZE, and oidvector::values.
Referenced by DefineAggregate(), interpret_function_parameter_list(), makeMultirangeConstructors(), makeRangeConstructors(), StorePartitionKey(), and UpdateIndexRelation().
int oid_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Definition at line 258 of file oid.c.
References p2, and pg_cmp_u32().
Referenced by aclmembers(), AlterSubscription_refresh(), EnumValuesCreate(), and find_inheritance_children_extended().
Datum oideq | ( | PG_FUNCTION_ARGS | ) |
Datum oidge | ( | PG_FUNCTION_ARGS | ) |
Datum oidgt | ( | PG_FUNCTION_ARGS | ) |
Datum oidin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 37 of file oid.c.
References PG_GETARG_CSTRING, PG_RETURN_OID, and uint32in_subr().
Referenced by defGetObjectId(), and parseNumericOid().
Datum oidlarger | ( | PG_FUNCTION_ARGS | ) |
Datum oidle | ( | PG_FUNCTION_ARGS | ) |
Datum oidlt | ( | PG_FUNCTION_ARGS | ) |
Datum oidne | ( | PG_FUNCTION_ARGS | ) |
Datum oidout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 47 of file oid.c.
References palloc(), PG_GETARG_OID, PG_RETURN_CSTRING, and snprintf.
Referenced by plperl_trigger_build_args(), pltcl_trigger_handler(), and PLy_trigger_build_args().
Definition at line 235 of file oid.c.
References castNode, elog, ERROR, intVal, InvalidOid, nodeTag, and uint32in_subr().
Referenced by get_object_address().
Datum oidrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 60 of file oid.c.
References buf, PG_GETARG_POINTER, PG_RETURN_OID, and pq_getmsgint().
Referenced by regclassrecv(), regcollationrecv(), regconfigrecv(), regdictionaryrecv(), regnamespacerecv(), regoperatorrecv(), regoperrecv(), regprocedurerecv(), regprocrecv(), regrolerecv(), and regtyperecv().
Datum oidsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 71 of file oid.c.
References buf, PG_GETARG_OID, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint32().
Referenced by regclasssend(), regcollationsend(), regconfigsend(), regdictionarysend(), regnamespacesend(), regoperatorsend(), regopersend(), regproceduresend(), regprocsend(), regrolesend(), and regtypesend().
Datum oidsmaller | ( | PG_FUNCTION_ARGS | ) |
Datum oidvectoreq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 344 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Referenced by oidvectoreqfast().
Datum oidvectorge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 376 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Datum oidvectorgt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 384 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Datum oidvectorin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 114 of file oid.c.
References oidvector::dataoffset, oidvector::dim1, oidvector::elemtype, oidvector::lbound1, oidvector::ndim, OidVectorSize, palloc0(), PG_GETARG_CSTRING, PG_RETURN_NULL, PG_RETURN_POINTER, repalloc(), SET_VARSIZE, SOFT_ERROR_OCCURRED, uint32in_subr(), and oidvector::values.
Datum oidvectorle | ( | PG_FUNCTION_ARGS | ) |
Definition at line 368 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Datum oidvectorlt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 360 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Datum oidvectorne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 352 of file oid.c.
References btoidvectorcmp(), cmp(), DatumGetInt32(), and PG_RETURN_BOOL.
Datum oidvectorout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file oid.c.
References oidvector::dim1, palloc(), PG_GETARG_POINTER, PG_RETURN_CSTRING, sprintf, and oidvector::values.
Datum oidvectorrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 184 of file oid.c.
References ARR_ELEMTYPE, ARR_HASNULL, ARR_LBOUND, ARR_NDIM, array_recv(), Assert, buf, DatumGetPointer(), ereport, errcode(), errmsg(), ERROR, InitFunctionCallInfoData, Int32GetDatum(), InvalidOid, LOCAL_FCINFO, ObjectIdGetDatum(), PG_GETARG_POINTER, PG_RETURN_POINTER, and PointerGetDatum().
Datum oidvectorsend | ( | PG_FUNCTION_ARGS | ) |