PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_ts_parser.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_ts_parser.h
4  * definition of parsers 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_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 */
43 
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 */
DATA(insert OID=3722("default"PGNSP prsd_start prsd_nexttoken prsd_end prsd_headline prsd_lextype))
Datum prsd_headline(PG_FUNCTION_ARGS)
Definition: wparser_def.c:2537
FormData_pg_ts_parser
Definition: pg_ts_parser.h:42
DESCR("default word parser")
Datum prsd_lextype(PG_FUNCTION_ARGS)
Definition: wparser_def.c:1967
unsigned int Oid
Definition: postgres_ext.h:31
CATALOG(pg_ts_parser, 3601)
Definition: pg_ts_parser.h:33
Datum prsd_end(PG_FUNCTION_ARGS)
Definition: wparser_def.c:2007
Datum prsd_start(PG_FUNCTION_ARGS)
Definition: wparser_def.c:1985
Definition: c.h:487
FormData_pg_ts_parser * Form_pg_ts_parser
Definition: pg_ts_parser.h:44
Oid regproc
Definition: c.h:388
Datum prsd_nexttoken(PG_FUNCTION_ARGS)
Definition: wparser_def.c:1991