pg_ts_dict.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_ts_dict.h
  4. * definition of the "text search dictionary" system catalog (pg_ts_dict)
  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_ts_dict.h
  11. *
  12. * NOTES
  13. * The Catalog.pm module reads this file and derives schema
  14. * information.
  15. *
  16. *-------------------------------------------------------------------------
  17. */
  18. #ifndef PG_TS_DICT_H
  19. #define PG_TS_DICT_H
  20. #include "catalog/genbki.h"
  21. #include "catalog/pg_ts_dict_d.h"
  22. /* ----------------
  23. * pg_ts_dict definition. cpp turns this into
  24. * typedef struct FormData_pg_ts_dict
  25. * ----------------
  26. */
  27. CATALOG(pg_ts_dict,3600,TSDictionaryRelationId)
  28. {
  29. /* oid */
  30. Oid oid;
  31. /* dictionary name */
  32. NameData dictname;
  33. /* name space */
  34. Oid dictnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
  35. /* owner */
  36. Oid dictowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
  37. /* dictionary's template */
  38. Oid dicttemplate BKI_LOOKUP(pg_ts_template);
  39. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  40. /* options passed to dict_init() */
  41. text dictinitoption;
  42. #endif
  43. } FormData_pg_ts_dict;
  44. typedef FormData_pg_ts_dict *Form_pg_ts_dict;
  45. DECLARE_TOAST(pg_ts_dict, 4169, 4170);
  46. DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, TSDictionaryNameNspIndexId, on pg_ts_dict using btree(dictname name_ops, dictnamespace oid_ops));
  47. DECLARE_UNIQUE_INDEX_PKEY(pg_ts_dict_oid_index, 3605, TSDictionaryOidIndexId, on pg_ts_dict using btree(oid oid_ops));
  48. #endif /* PG_TS_DICT_H */