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-2024, 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, Node *escontext);
29 extern char *format_procedure(Oid procedure_oid);
30 extern char *format_procedure_qualified(Oid procedure_oid);
31 extern void format_procedure_parts(Oid procedure_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
uint16 bits16
Definition: c.h:525
unsigned int Oid
Definition: postgres_ext.h:31
char * format_operator(Oid operator_oid)
Definition: regproc.c:793
char * format_procedure_qualified(Oid procedure_oid)
Definition: regproc.c:305
char * format_procedure(Oid procedure_oid)
Definition: regproc.c:299
char * format_operator_extended(Oid operator_oid, bits16 flags)
Definition: regproc.c:722
char * format_procedure_extended(Oid procedure_oid, bits16 flags)
Definition: regproc.c:326
void format_operator_parts(Oid operator_oid, List **objnames, List **objargs, bool missing_ok)
Definition: regproc.c:806
List * stringToQualifiedNameList(const char *string, Node *escontext)
Definition: regproc.c:1797
void format_procedure_parts(Oid procedure_oid, List **objnames, List **objargs, bool missing_ok)
Definition: regproc.c:398
char * format_operator_qualified(Oid operator_oid)
Definition: regproc.c:799
Definition: pg_list.h:54
Definition: nodes.h:129