1 /*-------------------------------------------------------------------------
2  *
3  * regproc.h
4  *	  Functions for the built-in types regproc, regclass, regtype, etc.
5  *
6  * Portions Copyright (c) 1996-2021, 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
40