|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/htup_details.h"#include "access/table.h"#include "catalog/catalog.h"#include "catalog/dependency.h"#include "catalog/indexing.h"#include "catalog/objectaccess.h"#include "catalog/pg_collation.h"#include "catalog/pg_namespace.h"#include "mb/pg_wchar.h"#include "utils/builtins.h"#include "utils/rel.h"#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
| Oid | CollationCreate (const char *collname, Oid collnamespace, Oid collowner, char collprovider, bool collisdeterministic, int32 collencoding, const char *collcollate, const char *collctype, const char *colllocale, const char *collicurules, const char *collversion, bool if_not_exists, bool quiet) |
| Oid CollationCreate | ( | const char * | collname, |
| Oid | collnamespace, | ||
| Oid | collowner, | ||
| char | collprovider, | ||
| bool | collisdeterministic, | ||
| int32 | collencoding, | ||
| const char * | collcollate, | ||
| const char * | collctype, | ||
| const char * | colllocale, | ||
| const char * | collicurules, | ||
| const char * | collversion, | ||
| bool | if_not_exists, | ||
| bool | quiet | ||
| ) |
Definition at line 42 of file pg_collation.c.
References Assert(), BoolGetDatum(), CatalogTupleInsert(), CharGetDatum(), checkMembershipInCurrentExtension(), ObjectAddress::classId, CStringGetTextDatum, DEPENDENCY_NORMAL, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg(), ERROR, GetDatabaseEncoding(), GetNewOidWithIndex(), GetSysCacheOid3, heap_form_tuple(), heap_freetuple(), Int32GetDatum(), InvalidOid, InvokeObjectPostCreateHook, NameGetDatum(), namestrcpy(), NoLock, NOTICE, ObjectAddressSet, ObjectAddress::objectId, ObjectIdGetDatum(), ObjectAddress::objectSubId, OidIsValid, pg_encoding_to_char, PointerGetDatum(), recordDependencyOn(), recordDependencyOnCurrentExtension(), recordDependencyOnOwner(), RelationGetDescr, ShareRowExclusiveLock, table_close(), table_open(), and values.
Referenced by DefineCollation(), and pg_import_system_collations().