1 /*-------------------------------------------------------------------------
4 * definition of the system catalog for text search token mappings
8 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/catalog/pg_ts_config_map.h
14 * The Catalog.pm module reads this file and derives schema
17 *-------------------------------------------------------------------------
19 #ifndef PG_TS_CONFIG_MAP_H
20 #define PG_TS_CONFIG_MAP_H
22 #include "catalog/genbki.h"
23 #include "catalog/pg_ts_config_map_d.h"
26 * pg_ts_config_map definition. cpp turns this into
27 * typedef struct FormData_pg_ts_config_map
30 CATALOG(pg_ts_config_map
,3603,TSConfigMapRelationId
)
32 /* OID of configuration owning this entry */
33 Oid mapcfg
BKI_LOOKUP(pg_ts_config
);
35 /* token type from parser */
38 /* order in which to consult dictionaries */
41 /* dictionary to consult */
42 Oid mapdict
BKI_LOOKUP(pg_ts_dict
);
43 } FormData_pg_ts_config_map
;
45 typedef FormData_pg_ts_config_map
*Form_pg_ts_config_map
;
47 DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_map_index
, 3609, TSConfigMapIndexId
, pg_ts_config_map
, btree(mapcfg oid_ops
, maptokentype int4_ops
, mapseqno int4_ops
));
49 MAKE_SYSCACHE(TSCONFIGMAP
, pg_ts_config_map_index
, 2);
51 #endif /* PG_TS_CONFIG_MAP_H */