Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*-------------------------------------------------------------------------
 *
 * pg_ts_parser.h
 *    definition of the "text search parser" system catalog (pg_ts_parser)
 *
 *
 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * src/include/catalog/pg_ts_parser.h
 *
 * NOTES
 *    The Catalog.pm module reads this file and derives schema
 *    information.
 *
 *-------------------------------------------------------------------------
 */
#ifndef PG_TS_PARSER_H
#define PG_TS_PARSER_H
 
#include "catalog/genbki.h"
#include "catalog/pg_ts_parser_d.h" /* IWYU pragma: export */
 
/* ----------------
 *      pg_ts_parser definition.  cpp turns this into
 *      typedef struct FormData_pg_ts_parser
 * ----------------
 */
BEGIN_CATALOG_STRUCT
 
CATALOG(pg_ts_parser,3601,TSParserRelationId)
{
    Oid         oid;            /* oid */
 
    /* parser's name */
    NameData    prsname;
 
    /* name space */
    Oid         prsnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
 
    /* init parsing session */
    regproc     prsstart BKI_LOOKUP(pg_proc);
 
    /* return next token */
    regproc     prstoken BKI_LOOKUP(pg_proc);
 
    /* finalize parsing session */
    regproc     prsend BKI_LOOKUP(pg_proc);
 
    /* return data for headline creation */
    regproc     prsheadline BKI_LOOKUP_OPT(pg_proc);
 
    /* return descriptions of lexeme's types */
    regproc     prslextype BKI_LOOKUP(pg_proc);
} FormData_pg_ts_parser;
 
END_CATALOG_STRUCT
 
typedef FormData_pg_ts_parser *Form_pg_ts_parser;
 
DECLARE_UNIQUE_INDEX(pg_ts_parser_prsname_index, 3606, TSParserNameNspIndexId, pg_ts_parser, btree(prsname name_ops, prsnamespace oid_ops));
DECLARE_UNIQUE_INDEX_PKEY(pg_ts_parser_oid_index, 3607, TSParserOidIndexId, pg_ts_parser, btree(oid oid_ops));
 
MAKE_SYSCACHE(TSPARSERNAMENSP, pg_ts_parser_prsname_index, 2);
MAKE_SYSCACHE(TSPARSEROID, pg_ts_parser_oid_index, 2);
 
#endif                          /* PG_TS_PARSER_H */