1 /*-------------------------------------------------------------------------
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
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"
27 * pg_ts_parser definition. cpp turns this into
28 * typedef struct FormData_pg_ts_parser
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
;
47 * compiler constants for pg_ts_parser
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
60 * initial contents of pg_ts_parser
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 */