Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / catalog / pg_ts_template.h
blob2b53880cf9a02a44f59e6aa543119d1899a4983e
1 /*-------------------------------------------------------------------------
3 * pg_ts_template.h
4 * definition of dictionary templates for tsearch
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 * NOTES
13 * the genbki.sh script reads this file and generates .bki
14 * information from the DATA() statements.
16 * XXX do NOT break up DATA() statements into multiple lines!
17 * the scripts are not as smart as you might think...
19 *-------------------------------------------------------------------------
21 #ifndef PG_TS_TEMPLATE_H
22 #define PG_TS_TEMPLATE_H
24 #include "catalog/genbki.h"
26 /* ----------------
27 * pg_ts_template definition. cpp turns this into
28 * typedef struct FormData_pg_ts_template
29 * ----------------
31 #define TSTemplateRelationId 3764
33 CATALOG(pg_ts_template,3764)
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 */
39 } FormData_pg_ts_template;
41 typedef FormData_pg_ts_template *Form_pg_ts_template;
43 /* ----------------
44 * compiler constants for pg_ts_template
45 * ----------------
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
53 /* ----------------
54 * initial contents of pg_ts_template
55 * ----------------
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");
67 #endif /* PG_TS_TEMPLATE_H */