PostgreSQL Source Code  git master
pg_ts_dict.h
Go to the documentation of this file.
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-2024, 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 
21 #include "catalog/genbki.h"
22 #include "catalog/pg_ts_dict_d.h"
23 
24 /* ----------------
25  * pg_ts_dict definition. cpp turns this into
26  * typedef struct FormData_pg_ts_dict
27  * ----------------
28  */
29 CATALOG(pg_ts_dict,3600,TSDictionaryRelationId)
30 {
31  /* oid */
32  Oid oid;
33 
34  /* dictionary name */
35  NameData dictname;
36 
37  /* name space */
38  Oid dictnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
39 
40  /* owner */
41  Oid dictowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
42 
43  /* dictionary's template */
44  Oid dicttemplate BKI_LOOKUP(pg_ts_template);
45 
46 #ifdef CATALOG_VARLEN /* variable-length fields start here */
47  /* options passed to dict_init() */
48  text dictinitoption;
49 #endif
51 
53 
54 DECLARE_TOAST(pg_ts_dict, 4169, 4170);
55 
56 DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, TSDictionaryNameNspIndexId, pg_ts_dict, btree(dictname name_ops, dictnamespace oid_ops));
57 DECLARE_UNIQUE_INDEX_PKEY(pg_ts_dict_oid_index, 3605, TSDictionaryOidIndexId, pg_ts_dict, btree(oid oid_ops));
58 
59 MAKE_SYSCACHE(TSDICTNAMENSP, pg_ts_dict_dictname_index, 2);
60 MAKE_SYSCACHE(TSDICTOID, pg_ts_dict_oid_index, 2);
61 
62 #endif /* PG_TS_DICT_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
#define BKI_DEFAULT(value)
Definition: genbki.h:35
FormData_pg_ts_dict
Definition: pg_ts_dict.h:50
CATALOG(pg_ts_dict, 3600, TSDictionaryRelationId)
Definition: pg_ts_dict.h:29
FormData_pg_ts_dict * Form_pg_ts_dict
Definition: pg_ts_dict.h:52
DECLARE_UNIQUE_INDEX_PKEY(pg_ts_dict_oid_index, 3605, TSDictionaryOidIndexId, pg_ts_dict, btree(oid oid_ops))
MAKE_SYSCACHE(TSDICTNAMENSP, pg_ts_dict_dictname_index, 2)
DECLARE_TOAST(pg_ts_dict, 4169, 4170)
DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, TSDictionaryNameNspIndexId, pg_ts_dict, btree(dictname name_ops, dictnamespace oid_ops))
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:695
Definition: c.h:641