PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_ts_dict.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_ts_dict.h
4  * definition of dictionaries for tsearch
5  *
6  *
7  * Portions Copyright (c) 1996-2017, 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 genbki.pl script reads this file and generates .bki
14  * information from the DATA() statements.
15  *
16  * XXX do NOT break up DATA() statements into multiple lines!
17  * the scripts are not as smart as you might think...
18  *
19  *-------------------------------------------------------------------------
20  */
21 #ifndef PG_TS_DICT_H
22 #define PG_TS_DICT_H
23 
24 #include "catalog/genbki.h"
25 
26 /* ----------------
27  * pg_ts_dict definition. cpp turns this into
28  * typedef struct FormData_pg_ts_dict
29  * ----------------
30  */
31 #define TSDictionaryRelationId 3600
32 
33 CATALOG(pg_ts_dict,3600)
34 {
35  NameData dictname; /* dictionary name */
36  Oid dictnamespace; /* name space */
37  Oid dictowner; /* owner */
38  Oid dicttemplate; /* dictionary's template */
39 
40 #ifdef CATALOG_VARLEN /* variable-length fields start here */
41  text dictinitoption; /* options passed to dict_init() */
42 #endif
44 
46 
47 /* ----------------
48  * compiler constants for pg_ts_dict
49  * ----------------
50  */
51 #define Natts_pg_ts_dict 5
52 #define Anum_pg_ts_dict_dictname 1
53 #define Anum_pg_ts_dict_dictnamespace 2
54 #define Anum_pg_ts_dict_dictowner 3
55 #define Anum_pg_ts_dict_dicttemplate 4
56 #define Anum_pg_ts_dict_dictinitoption 5
57 
58 /* ----------------
59  * initial contents of pg_ts_dict
60  * ----------------
61  */
62 
63 DATA(insert OID = 3765 ( "simple" PGNSP PGUID 3727 _null_));
64 DESCR("simple dictionary: just lower case and check for stopword");
65 
66 #endif /* PG_TS_DICT_H */
DESCR("simple dictionary: just lower case and check for stopword")
unsigned int Oid
Definition: postgres_ext.h:31
CATALOG(pg_ts_dict, 3600)
Definition: pg_ts_dict.h:33
Definition: c.h:489
FormData_pg_ts_dict * Form_pg_ts_dict
Definition: pg_ts_dict.h:45
DATA(insert OID=3765("simple"PGNSP PGUID 3727 _null_))
FormData_pg_ts_dict
Definition: pg_ts_dict.h:43
Definition: c.h:435