pg_ts_config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_ts_config.h
  4. * definition of the "text search configuration" system catalog
  5. * (pg_ts_config)
  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_ts_config.h
  12. *
  13. * NOTES
  14. * The Catalog.pm module reads this file and derives schema
  15. * information.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_TS_CONFIG_H
  20. #define PG_TS_CONFIG_H
  21. #include "catalog/genbki.h"
  22. #include "catalog/pg_ts_config_d.h"
  23. /* ----------------
  24. * pg_ts_config definition. cpp turns this into
  25. * typedef struct FormData_pg_ts_config
  26. * ----------------
  27. */
  28. CATALOG(pg_ts_config,3602,TSConfigRelationId)
  29. {
  30. /* oid */
  31. Oid oid;
  32. /* name of configuration */
  33. NameData cfgname;
  34. /* name space */
  35. Oid cfgnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
  36. /* owner */
  37. Oid cfgowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
  38. /* OID of parser */
  39. Oid cfgparser BKI_LOOKUP(pg_ts_parser);
  40. } FormData_pg_ts_config;
  41. typedef FormData_pg_ts_config *Form_pg_ts_config;
  42. DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, TSConfigNameNspIndexId, on pg_ts_config using btree(cfgname name_ops, cfgnamespace oid_ops));
  43. DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_oid_index, 3712, TSConfigOidIndexId, on pg_ts_config using btree(oid oid_ops));
  44. #endif /* PG_TS_CONFIG_H */