2017-01-21 02:29:53 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* regproc.h
|
|
|
|
* Functions for the built-in types regproc, regclass, regtype, etc.
|
|
|
|
*
|
2022-01-08 01:04:57 +01:00
|
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
2017-01-21 02:29:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* src/include/utils/regproc.h
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef REGPROC_H
|
|
|
|
#define REGPROC_H
|
|
|
|
|
|
|
|
#include "nodes/pg_list.h"
|
|
|
|
|
2020-07-06 06:06:08 +02:00
|
|
|
/* Control flags for format_procedure_extended */
|
|
|
|
#define FORMAT_PROC_INVALID_AS_NULL 0x01 /* NULL if undefined */
|
|
|
|
#define FORMAT_PROC_FORCE_QUALIFY 0x02 /* force qualification */
|
|
|
|
extern char *format_procedure_extended(Oid procedure_oid, bits16 flags);
|
|
|
|
|
|
|
|
/* Control flags for format_operator_extended */
|
|
|
|
#define FORMAT_OPERATOR_INVALID_AS_NULL 0x01 /* NULL if undefined */
|
|
|
|
#define FORMAT_OPERATOR_FORCE_QUALIFY 0x02 /* force qualification */
|
|
|
|
extern char *format_operator_extended(Oid operator_oid, bits16 flags);
|
|
|
|
|
2017-01-21 02:29:53 +01:00
|
|
|
extern List *stringToQualifiedNameList(const char *string);
|
|
|
|
extern char *format_procedure(Oid procedure_oid);
|
|
|
|
extern char *format_procedure_qualified(Oid procedure_oid);
|
2022-09-20 22:09:30 +02:00
|
|
|
extern void format_procedure_parts(Oid procedure_oid, List **objnames,
|
2020-07-15 02:03:10 +02:00
|
|
|
List **objargs, bool missing_ok);
|
|
|
|
|
2017-01-21 02:29:53 +01:00
|
|
|
extern char *format_operator(Oid operator_oid);
|
|
|
|
extern char *format_operator_qualified(Oid operator_oid);
|
|
|
|
extern void format_operator_parts(Oid operator_oid, List **objnames,
|
2020-07-15 02:03:10 +02:00
|
|
|
List **objargs, bool missing_ok);
|
2017-01-21 02:29:53 +01:00
|
|
|
|
|
|
|
#endif
|