pg_largeobject_metadata.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_largeobject_metadata.h
  4. * definition of the "large object metadata" system catalog
  5. * (pg_largeobject_metadata)
  6. *
  7. *
  8. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/catalog/pg_largeobject_metadata.h
  12. *
  13. * NOTES
  14. * The Catalog.pm module reads this file and derives schema
  15. * information.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_LARGEOBJECT_METADATA_H
  20. #define PG_LARGEOBJECT_METADATA_H
  21. #include "catalog/genbki.h"
  22. #include "catalog/pg_largeobject_metadata_d.h"
  23. /* ----------------
  24. * pg_largeobject_metadata definition. cpp turns this into
  25. * typedef struct FormData_pg_largeobject_metadata
  26. * ----------------
  27. */
  28. CATALOG(pg_largeobject_metadata,2995,LargeObjectMetadataRelationId)
  29. {
  30. Oid oid; /* oid */
  31. Oid lomowner BKI_LOOKUP(pg_authid); /* OID of the largeobject
  32. * owner */
  33. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  34. aclitem lomacl[1]; /* access permissions */
  35. #endif
  36. } FormData_pg_largeobject_metadata;
  37. /* ----------------
  38. * Form_pg_largeobject_metadata corresponds to a pointer to a tuple
  39. * with the format of pg_largeobject_metadata relation.
  40. * ----------------
  41. */
  42. typedef FormData_pg_largeobject_metadata *Form_pg_largeobject_metadata;
  43. DECLARE_UNIQUE_INDEX_PKEY(pg_largeobject_metadata_oid_index, 2996, LargeObjectMetadataOidIndexId, on pg_largeobject_metadata using btree(oid oid_ops));
  44. #endif /* PG_LARGEOBJECT_METADATA_H */