pg_sequence.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* -------------------------------------------------------------------------
  2. *
  3. * pg_sequence.h
  4. * definition of the "sequence" system catalog (pg_sequence)
  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/catalog/pg_sequence.h
  10. *
  11. * NOTES
  12. * The Catalog.pm module reads this file and derives schema
  13. * information.
  14. *
  15. * -------------------------------------------------------------------------
  16. */
  17. #ifndef PG_SEQUENCE_H
  18. #define PG_SEQUENCE_H
  19. #include "catalog/genbki.h"
  20. #include "catalog/pg_sequence_d.h"
  21. CATALOG(pg_sequence,2224,SequenceRelationId)
  22. {
  23. Oid seqrelid BKI_LOOKUP(pg_class);
  24. Oid seqtypid BKI_LOOKUP(pg_type);
  25. int64 seqstart;
  26. int64 seqincrement;
  27. int64 seqmax;
  28. int64 seqmin;
  29. int64 seqcache;
  30. bool seqcycle;
  31. } FormData_pg_sequence;
  32. /* ----------------
  33. * Form_pg_sequence corresponds to a pointer to a tuple with
  34. * the format of pg_sequence relation.
  35. * ----------------
  36. */
  37. typedef FormData_pg_sequence *Form_pg_sequence;
  38. DECLARE_UNIQUE_INDEX_PKEY(pg_sequence_seqrelid_index, 5002, SequenceRelidIndexId, on pg_sequence using btree(seqrelid oid_ops));
  39. #endif /* PG_SEQUENCE_H */