PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
ObjectAddress | DefineCollation (ParseState *pstate, List *names, List *parameters, bool if_not_exists) |
void | IsThereCollationInNamespace (const char *collname, Oid nspOid) |
ObjectAddress DefineCollation | ( | ParseState * | pstate, |
List * | names, | ||
List * | parameters, | ||
bool | if_not_exists | ||
) |
Definition at line 53 of file collationcmds.c.
References ACL_CREATE, aclcheck_error(), ACLCHECK_OK, check_encoding_locale_matches(), CollationCreate(), COLLOID, CommandCounterIncrement(), defGetBoolean(), defGetQualifiedName(), defGetString(), DefElem::defname, elog, ereport, errcode(), errmsg(), ERROR, get_collation_oid(), get_namespace_name(), GetDatabaseEncoding(), GETSTRUCT, GetUserId(), HeapTupleIsValid, InvalidObjectAddress, lc_collate_is_c(), lc_ctype_is_c(), lfirst_node, list_length(), DefElem::location, NameStr, OBJECT_SCHEMA, ObjectAddressSet, ObjectIdGetDatum, OidIsValid, parser_errposition(), pg_namespace_aclcheck(), pg_newlocale_from_collation(), pg_strcasecmp(), pstrdup(), QualifiedNameGetCreationNamespace(), ReleaseSysCache(), and SearchSysCache1().
Referenced by ProcessUtilitySlow().
void IsThereCollationInNamespace | ( | const char * | collname, |
Oid | nspOid | ||
) |
Definition at line 246 of file collationcmds.c.
References COLLNAMEENCNSP, CStringGetDatum, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg(), ERROR, get_namespace_name(), GetDatabaseEncoding(), GetDatabaseEncodingName(), Int32GetDatum, ObjectIdGetDatum, and SearchSysCacheExists3.
Referenced by AlterObjectNamespace_internal(), and AlterObjectRename_internal().