pg_ts_config_map.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_ts_config_map.h
  4. * definition of the system catalog for text search token mappings
  5. * (pg_ts_config_map)
  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_map.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_MAP_H
  20. #define PG_TS_CONFIG_MAP_H
  21. #include "catalog/genbki.h"
  22. #include "catalog/pg_ts_config_map_d.h"
  23. /* ----------------
  24. * pg_ts_config_map definition. cpp turns this into
  25. * typedef struct FormData_pg_ts_config_map
  26. * ----------------
  27. */
  28. CATALOG(pg_ts_config_map,3603,TSConfigMapRelationId)
  29. {
  30. /* OID of configuration owning this entry */
  31. Oid mapcfg BKI_LOOKUP(pg_ts_config);
  32. /* token type from parser */
  33. int32 maptokentype;
  34. /* order in which to consult dictionaries */
  35. int32 mapseqno;
  36. /* dictionary to consult */
  37. Oid mapdict BKI_LOOKUP(pg_ts_dict);
  38. } FormData_pg_ts_config_map;
  39. typedef FormData_pg_ts_config_map *Form_pg_ts_config_map;
  40. DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_map_index, 3609, TSConfigMapIndexId, on pg_ts_config_map using btree(mapcfg oid_ops, maptokentype int4_ops, mapseqno int4_ops));
  41. #endif /* PG_TS_CONFIG_MAP_H */