92 (
errcode(ERRCODE_NAME_TOO_LONG),
93 errmsg(
"identifier too long"),
94 errdetail(
"Identifier must be less than %d characters.",
97 memcpy(result,
str, nbytes);
138 if (
collid == C_COLLATION_OID)
284 if (search_path ==
NIL)
304 foreach(l, search_path)
342 suflen =
snprintf(suffix,
sizeof(suffix),
"_%u", oid);
343 namlen = strlen(
NameStr(*nam));
352 memcpy(
NameStr(*result) + namlen, suffix, suflen);
ArrayType * construct_array_builtin(Datum *elems, int nelems, Oid elmtype)
int errdetail(const char *fmt,...)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_RETURN_BYTEA_P(x)
#define PG_GETARG_POINTER(n)
#define PG_RETURN_CSTRING(x)
#define DirectFunctionCall1(func, arg1)
#define PG_GETARG_CSTRING(n)
#define PG_GETARG_NAME(n)
#define PG_RETURN_INT32(x)
#define PG_RETURN_NAME(x)
#define PG_GETARG_BOOL(n)
#define PG_RETURN_DATUM(x)
#define PG_RETURN_POINTER(x)
#define PG_GET_COLLATION()
#define PG_RETURN_BOOL(x)
void list_free(List *list)
char * get_namespace_name(Oid nspid)
int pg_mbcliplen(const char *mbstr, int len, int limit)
char * pstrdup(const char *in)
void pfree(void *pointer)
void * palloc0(Size size)
Oid GetSessionUserId(void)
char * GetUserNameFromId(Oid roleid, bool noerr)
Datum nameout(PG_FUNCTION_ARGS)
Datum nameeq(PG_FUNCTION_ARGS)
Datum nameconcatoid(PG_FUNCTION_ARGS)
Datum btnamecmp(PG_FUNCTION_ARGS)
Datum current_user(PG_FUNCTION_ARGS)
Datum btnamesortsupport(PG_FUNCTION_ARGS)
int namestrcmp(Name name, const char *str)
Datum namele(PG_FUNCTION_ARGS)
Datum namerecv(PG_FUNCTION_ARGS)
Datum namegt(PG_FUNCTION_ARGS)
void namestrcpy(Name name, const char *str)
Datum session_user(PG_FUNCTION_ARGS)
Datum namelt(PG_FUNCTION_ARGS)
Datum namein(PG_FUNCTION_ARGS)
Datum current_schema(PG_FUNCTION_ARGS)
Datum namege(PG_FUNCTION_ARGS)
static int namecmp(Name arg1, Name arg2, Oid collid)
Datum namesend(PG_FUNCTION_ARGS)
Datum current_schemas(PG_FUNCTION_ARGS)
Datum namene(PG_FUNCTION_ARGS)
List * fetch_search_path(bool includeImplicit)
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
static int list_length(const List *l)
static Datum CStringGetDatum(const char *X)
struct SortSupportData * SortSupport
StringInfoData * StringInfo
int varstr_cmp(const char *arg1, int len1, const char *arg2, int len2, Oid collid)
void varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid)