• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..07-Dec-2021-

Makefile.amH A D07-Dec-2021957 4536

Makefile.inH A D07-Dec-202120 KiB662575

READMEH A D07-Dec-20211.8 KiB5043

copyfuncs.cH A D07-Dec-2021122.6 KiB5,9314,266

gram.cH A D07-Dec-20212.3 MiB48,75645,393

gram.hH A D07-Dec-202121.9 KiB1,1001,049

gram.yH A D07-Dec-2021450.1 KiB17,31014,020

gram_minimal.cH A D07-Dec-20212.4 MiB48,69845,343

gram_minimal.hH A D07-Dec-202122 KiB1,1001,049

gram_minimal.yH A D07-Dec-2021450 KiB17,29114,011

keywords.cH A D07-Dec-20211.1 KiB4816

kwlookup.cH A D07-Dec-20212.4 KiB8728

list.cH A D07-Dec-202135.6 KiB1,555894

makefuncs.cH A D07-Dec-202113.4 KiB631376

nodes.cH A D07-Dec-2021967 333

outfuncs.cH A D07-Dec-2021139.6 KiB6,3365,221

parser.cH A D07-Dec-202117.4 KiB696490

pool_string.cH A D07-Dec-20212.3 KiB9661

scan.cH A D07-Dec-2021105 KiB3,6902,347

scan.lH A D07-Dec-202140.4 KiB1,451951

scansup.cH A D07-Dec-20213.6 KiB13460

snprintf.cH A D07-Dec-202136.8 KiB1,5731,140

stringinfo.cH A D07-Dec-20218 KiB319131

value.cH A D07-Dec-20211.2 KiB7935

wchar.cH A D07-Dec-202156.3 KiB2,6271,928

README

1Generating minimal and standard parser files
2--------------------------------------------
3To generate minimal and standard grammar files issue 'make generate_parsers'
4from Pgpool-II/src/parser directory. This will use gram_template.y file and
5will generate two grammar files. gram_minimal.y (for the minimal parser) and
6gram.y (for the standard parser).
7
8'make generate_parsers' uses sunifdef (http://www.linuxcertif.com/man/1/sunifdef/)
9utility to generate the parsers. And If the 'sunifdef' utility is present on the
10the system in the standard path then the configure will automatically pick it up
11by itself. But in the case when the sunifdef is not present in the default path
12then you can use "--with-sunifdef=sunifdef_dir' configure switch to provide the
13'sunifdef' path.
14
15Notes on importing the PostgreSQL parser
16----------------------------------------
17To import the PostgreSQL parser, merge all the changes in gram_template.y file
18from PostgreSQL's gram.y, and then run 'make generate_parsers' to generate
19updated minimal and standard grammar files for Pgpool-II
20
21Controlling minimal and standard parser output
22-----------------------------------------------
23All the code in gram_template.y file inside  #ifdef pgpool_minimal_parser section
24will only gets included in the gram_minimal.y file while the code inside
25#ifndef pgpool_minimal_parser section will only be included in the standard parser
26file.
27Similarly, the unconditional code which is not in either
28#ifndef pgpool_minimal_parser or #ifdef pgpool_minimal_parser will become part of
29both the parser.
30
31Example:1
32---------
33#ifdef pgpool_minimal_parser
34code only for the minimal parser
35#else
36code only for the standard parser
37#endif
38code for both parsers
39..
40
41Example:2
42---------
43#ifndef pgpool_minimal_parser
44code only for the standard parser
45#else
46code only for the minimal parser
47#endif
48code for both parsers
49
50