PostgreSQL Source Code: src/include/catalog/namespace.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef NAMESPACE_H

15#define NAMESPACE_H

16

20

21

22

23

24

25

26

27

28

30{

32 int pathpos;

33 Oid oid;

34 int nominalnargs;

35 int nargs;

36 int nvargs;

37 int ndargs;

38 int *argnumbers;

41

42

43

44

46{

51

52

53

54

55

56

57

58

60{

61 List *schemas;

62 bool addCatalog;

63 bool addTemp;

66

67

68

69

71{

72 RVR_MISSING_OK = 1 << 0,

73 RVR_NOWAIT = 1 << 1,

76

78 Oid oldRelId, void *callback_arg);

79

80#define RangeVarGetRelid(relation, lockmode, missing_ok) \

81 RangeVarGetRelidExtended(relation, lockmode, \

82 (missing_ok) ? RVR_MISSING_OK : 0, NULL, NULL)

83

87 void *callback_arg);

91 Oid *existing_relation_id);

95

99

101 int nargs, List *argnames,

102 bool expand_variadic,

103 bool expand_defaults,

104 bool include_out_arguments,

105 bool missing_ok);

107

110 bool missing_schema_ok);

112

115

118

121

124

127

130

133

136

139

141 char **nspname_p,

142 char **objname_p);

146

153

163 Oid *tempToastNamespaceId);

165 Oid tempToastNamespaceId);

167

171

175

176

177

182

183

185

188

189#endif

#define FLEXIBLE_ARRAY_MEMBER

Oid RangeVarGetAndCheckCreationNamespace(RangeVar *relation, LOCKMODE lockmode, Oid *existing_relation_id)

Oid OpclassnameGetOpcid(Oid amid, const char *opcname)

bool isTempOrTempToastNamespace(Oid namespaceId)

void ResetTempTableNamespace(void)

Oid FindDefaultConversionProc(int32 for_encoding, int32 to_encoding)

Oid OpernameGetOprid(List *names, Oid oprleft, Oid oprright)

PGDLLIMPORT char * namespace_search_path

char * NameListToString(const List *names)

Oid LookupExplicitNamespace(const char *nspname, bool missing_ok)

bool TSTemplateIsVisible(Oid tmplId)

Oid QualifiedNameGetCreationNamespace(const List *names, char **objname_p)

void(* RangeVarGetRelidCallback)(const RangeVar *relation, Oid relId, Oid oldRelId, void *callback_arg)

bool OpfamilyIsVisible(Oid opfid)

bool CollationIsVisible(Oid collid)

bool TypeIsVisible(Oid typid)

bool isOtherTempNamespace(Oid namespaceId)

Oid CollationGetCollid(const char *collname)

bool isTempNamespace(Oid namespaceId)

bool isAnyTempNamespace(Oid namespaceId)

bool ConversionIsVisible(Oid conid)

Oid get_statistics_object_oid(List *names, bool missing_ok)

Oid LookupCreationNamespace(const char *nspname)

void RangeVarAdjustRelationPersistence(RangeVar *newRelation, Oid nspid)

Oid get_collation_oid(List *collname, bool missing_ok)

void DeconstructQualifiedName(const List *names, char **nspname_p, char **objname_p)

List * fetch_search_path(bool includeImplicit)

FuncCandidateList FuncnameGetCandidates(List *names, int nargs, List *argnames, bool expand_variadic, bool expand_defaults, bool include_out_arguments, bool missing_ok)

Oid get_namespace_oid(const char *nspname, bool missing_ok)

SearchPathMatcher * GetSearchPathMatcher(MemoryContext context)

Oid TypenameGetTypidExtended(const char *typname, bool temp_ok)

char * NameListToQuotedString(const List *names)

Oid RangeVarGetCreationNamespace(const RangeVar *newRelation)

bool RelationIsVisible(Oid relid)

bool OpclassIsVisible(Oid opcid)

Oid ConversionGetConid(const char *conname)

void AtEOSubXact_Namespace(bool isCommit, SubTransactionId mySubid, SubTransactionId parentSubid)

TempNamespaceStatus checkTempNamespaceStatus(Oid namespaceId)

void CheckSetNamespace(Oid oldNspOid, Oid nspOid)

void GetTempNamespaceState(Oid *tempNamespaceId, Oid *tempToastNamespaceId)

void InitializeSearchPath(void)

bool OperatorIsVisible(Oid oprid)

bool TSParserIsVisible(Oid prsId)

bool SearchPathMatchesCurrentEnvironment(SearchPathMatcher *path)

@ TEMP_NAMESPACE_NOT_TEMP

Oid get_conversion_oid(List *conname, bool missing_ok)

bool FunctionIsVisible(Oid funcid)

Oid get_ts_dict_oid(List *names, bool missing_ok)

Oid get_ts_parser_oid(List *names, bool missing_ok)

SearchPathMatcher * CopySearchPathMatcher(SearchPathMatcher *path)

void SetTempNamespaceState(Oid tempNamespaceId, Oid tempToastNamespaceId)

Oid GetTempToastNamespace(void)

Oid OpfamilynameGetOpfid(Oid amid, const char *opfname)

struct _FuncCandidateList * FuncCandidateList

RangeVar * makeRangeVarFromNameList(const List *names)

void AtEOXact_Namespace(bool isCommit, bool parallel)

Oid get_ts_config_oid(List *names, bool missing_ok)

FuncCandidateList OpernameGetCandidates(List *names, char oprkind, bool missing_schema_ok)

Oid LookupNamespaceNoError(const char *nspname)

ProcNumber GetTempNamespaceProcNumber(Oid namespaceId)

Oid TypenameGetTypid(const char *typname)

int fetch_search_path_array(Oid *sarray, int sarray_len)

Oid RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode, uint32 flags, RangeVarGetRelidCallback callback, void *callback_arg)

bool TSConfigIsVisible(Oid cfgid)

bool StatisticsObjIsVisible(Oid stxid)

Oid RelnameGetRelid(const char *relname)

bool TSDictionaryIsVisible(Oid dictId)

struct SearchPathMatcher SearchPathMatcher

bool isTempToastNamespace(Oid namespaceId)

Oid get_ts_template_oid(List *names, bool missing_ok)

struct _FuncCandidateList * next

Oid args[FLEXIBLE_ARRAY_MEMBER]

static void callback(struct sockaddr *addr, struct sockaddr *mask, void *unused)