OSDN Git Service

rebuid:
[eos/hostdependX86MAC64.git] / util / X86MAC64 / include / postgresql / server / catalog / pg_ts_parser.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_ts_parser.h
4  *      definition of parsers for tsearch
5  *
6  *
7  * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/catalog/pg_ts_parser.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_PARSER_H
22 #define PG_TS_PARSER_H
23
24 #include "catalog/genbki.h"
25
26 /* ----------------
27  *              pg_ts_parser definition.  cpp turns this into
28  *              typedef struct FormData_pg_ts_parser
29  * ----------------
30  */
31 #define TSParserRelationId      3601
32
33 CATALOG(pg_ts_parser,3601)
34 {
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;
43
44 typedef FormData_pg_ts_parser *Form_pg_ts_parser;
45
46 /* ----------------
47  *              compiler constants for pg_ts_parser
48  * ----------------
49  */
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
58
59 /* ----------------
60  *              initial contents of pg_ts_parser
61  * ----------------
62  */
63
64 DATA(insert OID = 3722 ( "default" PGNSP prsd_start prsd_nexttoken prsd_end prsd_headline prsd_lextype ));
65 DESCR("default word parser");
66
67 #endif   /* PG_TS_PARSER_H */