Re: Re: [PATCHES] Select parser at runtime - Mailing list pgsql-hackers

From Ian Lance Taylor
Subject Re: Re: [PATCHES] Select parser at runtime
Date
Msg-id siwv47vqe9.fsf@daffy.airs.com
Whole thread Raw
In response to Re: Re: [PATCHES] Select parser at runtime  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:

>     If we want to have both parsers available at runtime we  need
>     to  replace the YY (case-insensitive) prefix in the generated
>     files per parser and call the right one from tcop.   Now  for
>     some flex/bison combo's at least the prefix switches (to have
>     something different than YY) don't work reliable. There  will
>     be  some  global  YY-objects  left, causing linkage problems.
>     That's why PL/pgSQL's scanner/parser's C-code is run  through
>     sed(1).

This is a solved problem.  gdb, for example, links together four
different Yacc-based parsers, without even using bison's -p option.

Ian


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Rename config.h to pg_config.h?
Next
From: Hiroshi Inoue
Date:
Subject: Re: PL/pgSQL bug?