regproc.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-------------------------------------------------------------------------
  2. *
  3. * regproc.h
  4. * Functions for the built-in types regproc, regclass, regtype, etc.
  5. *
  6. * Portions Copyright (c) 1996-2022, 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. #include "nodes/pg_list.h"
  16. /* Control flags for format_procedure_extended */
  17. #define FORMAT_PROC_INVALID_AS_NULL 0x01 /* NULL if undefined */
  18. #define FORMAT_PROC_FORCE_QUALIFY 0x02 /* force qualification */
  19. extern char *format_procedure_extended(Oid procedure_oid, bits16 flags);
  20. /* Control flags for format_operator_extended */
  21. #define FORMAT_OPERATOR_INVALID_AS_NULL 0x01 /* NULL if undefined */
  22. #define FORMAT_OPERATOR_FORCE_QUALIFY 0x02 /* force qualification */
  23. extern char *format_operator_extended(Oid operator_oid, bits16 flags);
  24. extern List *stringToQualifiedNameList(const char *string);
  25. extern char *format_procedure(Oid procedure_oid);
  26. extern char *format_procedure_qualified(Oid procedure_oid);
  27. extern void format_procedure_parts(Oid operator_oid, List **objnames,
  28. List **objargs, bool missing_ok);
  29. extern char *format_operator(Oid operator_oid);
  30. extern char *format_operator_qualified(Oid operator_oid);
  31. extern void format_operator_parts(Oid operator_oid, List **objnames,
  32. List **objargs, bool missing_ok);
  33. #endif