pg_transform.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_transform.h
  4. * definition of the "transform" system catalog (pg_transform)
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/catalog/pg_transform.h
  11. *
  12. * NOTES
  13. * The Catalog.pm module reads this file and derives schema
  14. * information.
  15. *
  16. *-------------------------------------------------------------------------
  17. */
  18. #ifndef PG_TRANSFORM_H
  19. #define PG_TRANSFORM_H
  20. #include "catalog/genbki.h"
  21. #include "catalog/pg_transform_d.h"
  22. /* ----------------
  23. * pg_transform definition. cpp turns this into
  24. * typedef struct FormData_pg_transform
  25. * ----------------
  26. */
  27. CATALOG(pg_transform,3576,TransformRelationId)
  28. {
  29. Oid oid; /* oid */
  30. Oid trftype BKI_LOOKUP(pg_type);
  31. Oid trflang BKI_LOOKUP(pg_language);
  32. regproc trffromsql BKI_LOOKUP_OPT(pg_proc);
  33. regproc trftosql BKI_LOOKUP_OPT(pg_proc);
  34. } FormData_pg_transform;
  35. /* ----------------
  36. * Form_pg_transform corresponds to a pointer to a tuple with
  37. * the format of pg_transform relation.
  38. * ----------------
  39. */
  40. typedef FormData_pg_transform *Form_pg_transform;
  41. DECLARE_UNIQUE_INDEX_PKEY(pg_transform_oid_index, 3574, TransformOidIndexId, on pg_transform using btree(oid oid_ops));
  42. DECLARE_UNIQUE_INDEX(pg_transform_type_lang_index, 3575, TransformTypeLangIndexId, on pg_transform using btree(trftype oid_ops, trflang oid_ops));
  43. #endif /* PG_TRANSFORM_H */