Re: CVS HEAD compile warning - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CVS HEAD compile warning
Date
Msg-id 9969.1077781492@sss.pgh.pa.us
Whole thread Raw
In response to Re: CVS HEAD compile warning  (Michael Meskes <meskes@postgresql.org>)
Responses Re: CVS HEAD compile warning  (Michael Meskes <meskes@postgresql.org>)
List pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
> Hmm, maybe the change is that "-s" is now enabled by default.

Right.  I inserted "%option nodefault" into pgc.l (and all our other
flex source files) a day or two ago, after realizing that it is a very
effective tool for catching missed cases in a set of lex rules.

I knew at the time that ecpg was the only one of our lexers in which
echo-to-stdout could conceivably be a reasonable default rule.  But
since flex 2.5.4 did not complain, I went ahead and committed the
addition in ecpg as well as everyplace else.

At this point I think our first question is whether flex 2.5.31 is
correctly detecting a hole in the ecpg lexer rules that was missed by
flex 2.5.4, or whether the warning is simply wrong.

If the warning is valid, you need to decide whether you like the idea of
a default spit-to-stdout action, or you'd prefer to put in an additional
flex rule to cover the missing case.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: CVS HEAD compile warning
Next
From: Jonathan Scott
Date:
Subject: Check Constraints and pg_dump