PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_ts_template.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_ts_template.h
4  * definition of dictionary templates 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_template.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_TEMPLATE_H
22 #define PG_TS_TEMPLATE_H
23 
24 #include "catalog/genbki.h"
25 
26 /* ----------------
27  * pg_ts_template definition. cpp turns this into
28  * typedef struct FormData_pg_ts_template
29  * ----------------
30  */
31 #define TSTemplateRelationId 3764
32 
33 CATALOG(pg_ts_template,3764)
34 {
35  NameData tmplname; /* template name */
36  Oid tmplnamespace; /* name space */
37  regproc tmplinit; /* initialization method of dict (may be 0) */
38  regproc tmpllexize; /* base method of dictionary */
40 
42 
43 /* ----------------
44  * compiler constants for pg_ts_template
45  * ----------------
46  */
47 #define Natts_pg_ts_template 4
48 #define Anum_pg_ts_template_tmplname 1
49 #define Anum_pg_ts_template_tmplnamespace 2
50 #define Anum_pg_ts_template_tmplinit 3
51 #define Anum_pg_ts_template_tmpllexize 4
52 
53 /* ----------------
54  * initial contents of pg_ts_template
55  * ----------------
56  */
57 
58 DATA(insert OID = 3727 ( "simple" PGNSP dsimple_init dsimple_lexize ));
59 DESCR("simple dictionary: just lower case and check for stopword");
60 DATA(insert OID = 3730 ( "synonym" PGNSP dsynonym_init dsynonym_lexize ));
61 DESCR("synonym dictionary: replace word by its synonym");
62 DATA(insert OID = 3733 ( "ispell" PGNSP dispell_init dispell_lexize ));
63 DESCR("ispell dictionary");
64 DATA(insert OID = 3742 ( "thesaurus" PGNSP thesaurus_init thesaurus_lexize ));
65 DESCR("thesaurus dictionary: phrase by phrase substitution");
66 
67 #endif /* PG_TS_TEMPLATE_H */
Datum dsimple_init(PG_FUNCTION_ARGS)
Definition: dict_simple.c:30
DESCR("simple dictionary: just lower case and check for stopword")
Datum dsynonym_init(PG_FUNCTION_ARGS)
Definition: dict_synonym.c:92
unsigned int Oid
Definition: postgres_ext.h:31
Datum dsynonym_lexize(PG_FUNCTION_ARGS)
Definition: dict_synonym.c:210
Datum dsimple_lexize(PG_FUNCTION_ARGS)
Definition: dict_simple.c:75
DATA(insert OID=3727("simple"PGNSP dsimple_init dsimple_lexize))
Definition: c.h:489
Datum thesaurus_lexize(PG_FUNCTION_ARGS)
CATALOG(pg_ts_template, 3764)
Oid regproc
Definition: c.h:391
FormData_pg_ts_template * Form_pg_ts_template
FormData_pg_ts_template
Datum dispell_init(PG_FUNCTION_ARGS)
Definition: dict_ispell.c:30
Datum thesaurus_init(PG_FUNCTION_ARGS)
Datum dispell_lexize(PG_FUNCTION_ARGS)
Definition: dict_ispell.c:111