PostgreSQL Source Code  git master
pg_ts_config.h
Go to the documentation of this file.
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-2024, 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 
22 #include "catalog/genbki.h"
23 #include "catalog/pg_ts_config_d.h"
24 
25 /* ----------------
26  * pg_ts_config definition. cpp turns this into
27  * typedef struct FormData_pg_ts_config
28  * ----------------
29  */
30 CATALOG(pg_ts_config,3602,TSConfigRelationId)
31 {
32  /* oid */
33  Oid oid;
34 
35  /* name of configuration */
36  NameData cfgname;
37 
38  /* name space */
39  Oid cfgnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
40 
41  /* owner */
42  Oid cfgowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
43 
44  /* OID of parser */
45  Oid cfgparser BKI_LOOKUP(pg_ts_parser);
47 
49 
50 DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, TSConfigNameNspIndexId, pg_ts_config, btree(cfgname name_ops, cfgnamespace oid_ops));
51 DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_oid_index, 3712, TSConfigOidIndexId, pg_ts_config, btree(oid oid_ops));
52 
53 MAKE_SYSCACHE(TSCONFIGNAMENSP, pg_ts_config_cfgname_index, 2);
54 MAKE_SYSCACHE(TSCONFIGOID, pg_ts_config_oid_index, 2);
55 
56 #endif /* PG_TS_CONFIG_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
#define BKI_DEFAULT(value)
Definition: genbki.h:35
FormData_pg_ts_config
Definition: pg_ts_config.h:46
CATALOG(pg_ts_config, 3602, TSConfigRelationId)
Definition: pg_ts_config.h:30
MAKE_SYSCACHE(TSCONFIGNAMENSP, pg_ts_config_cfgname_index, 2)
DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, TSConfigNameNspIndexId, pg_ts_config, btree(cfgname name_ops, cfgnamespace oid_ops))
DECLARE_UNIQUE_INDEX_PKEY(pg_ts_config_oid_index, 3712, TSConfigOidIndexId, pg_ts_config, btree(oid oid_ops))
FormData_pg_ts_config * Form_pg_ts_config
Definition: pg_ts_config.h:48
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:741