Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / catalog / pg_ts_parser.h
blob85e0256577bfcee938f915e61e79b2c0eac3a6ab
1 /*-------------------------------------------------------------------------
3 * pg_ts_parser.h
4 * definition of parsers 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_PARSER_H
22 #define PG_TS_PARSER_H
24 #include "catalog/genbki.h"
26 /* ----------------
27 * pg_ts_parser definition. cpp turns this into
28 * typedef struct FormData_pg_ts_parser
29 * ----------------
31 #define TSParserRelationId 3601
33 CATALOG(pg_ts_parser,3601)
35 NameData prsname; /* parser's name */
36 Oid prsnamespace; /* name space */
37 regproc prsstart; /* init parsing session */
38 regproc prstoken; /* return next token */
39 regproc prsend; /* finalize parsing session */
40 regproc prsheadline; /* return data for headline creation */
41 regproc prslextype; /* return descriptions of lexeme's types */
42 } FormData_pg_ts_parser;
44 typedef FormData_pg_ts_parser *Form_pg_ts_parser;
46 /* ----------------
47 * compiler constants for pg_ts_parser
48 * ----------------
50 #define Natts_pg_ts_parser 7
51 #define Anum_pg_ts_parser_prsname 1
52 #define Anum_pg_ts_parser_prsnamespace 2
53 #define Anum_pg_ts_parser_prsstart 3
54 #define Anum_pg_ts_parser_prstoken 4
55 #define Anum_pg_ts_parser_prsend 5
56 #define Anum_pg_ts_parser_prsheadline 6
57 #define Anum_pg_ts_parser_prslextype 7
59 /* ----------------
60 * initial contents of pg_ts_parser
61 * ----------------
64 DATA(insert OID = 3722 ( "default" PGNSP prsd_start prsd_nexttoken prsd_end prsd_headline prsd_lextype ));
65 DESCR("default word parser");
67 #endif /* PG_TS_PARSER_H */