PostgreSQL Source Code  git master
regproc.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * regproc.h
4  * Functions for the built-in types regproc, regclass, regtype, etc.
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/utils/regproc.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef REGPROC_H
14 #define REGPROC_H
15 
16 #include "nodes/pg_list.h"
17 
18 /* Control flags for format_procedure_extended */
19 #define FORMAT_PROC_INVALID_AS_NULL 0x01 /* NULL if undefined */
20 #define FORMAT_PROC_FORCE_QUALIFY 0x02 /* force qualification */
21 extern char *format_procedure_extended(Oid procedure_oid, bits16 flags);
22 
23 /* Control flags for format_operator_extended */
24 #define FORMAT_OPERATOR_INVALID_AS_NULL 0x01 /* NULL if undefined */
25 #define FORMAT_OPERATOR_FORCE_QUALIFY 0x02 /* force qualification */
26 extern char *format_operator_extended(Oid operator_oid, bits16 flags);
27 
28 extern List *stringToQualifiedNameList(const char *string);
29 extern char *format_procedure(Oid procedure_oid);
30 extern char *format_procedure_qualified(Oid procedure_oid);
31 extern void format_procedure_parts(Oid operator_oid, List **objnames,
32  List **objargs, bool missing_ok);
33 
34 extern char *format_operator(Oid operator_oid);
35 extern char *format_operator_qualified(Oid operator_oid);
36 extern void format_operator_parts(Oid operator_oid, List **objnames,
37  List **objargs, bool missing_ok);
38 
39 #endif
char * format_procedure_extended(Oid procedure_oid, bits16 flags)
Definition: regproc.c:349
uint16 bits16
Definition: c.h:383
unsigned int Oid
Definition: postgres_ext.h:31
char * format_procedure(Oid procedure_oid)
Definition: regproc.c:322
char * format_operator_qualified(Oid operator_oid)
Definition: regproc.c:857
char * format_operator(Oid operator_oid)
Definition: regproc.c:851
char * format_procedure_qualified(Oid procedure_oid)
Definition: regproc.c:328
void format_operator_parts(Oid operator_oid, List **objnames, List **objargs, bool missing_ok)
Definition: regproc.c:864
char * format_operator_extended(Oid operator_oid, bits16 flags)
Definition: regproc.c:780
Definition: pg_list.h:50
void format_procedure_parts(Oid operator_oid, List **objnames, List **objargs, bool missing_ok)
Definition: regproc.c:421
List * stringToQualifiedNameList(const char *string)
Definition: regproc.c:1876