"Cook, Tom" <[EMAIL PROTECTED]> writes:
> ERROR:  syntax error at line 3467: unexpected token "syntax error"

> This line number seems to be from postgres.bki, and it appears to be
> one short of where the error actually arises - inserting a blank line
> at line 3468 moves the error to line 3468.

Hmm, both the weird phrasing of the error message and the off-by-one
line count are pretty obvious bugs now that I look at bootscanner.l.
I guess nobody noticed because so few people have ever seen an actual
syntax error here.

> The first 'declare unique index' line is the one that is causing the
> problem - commenting it out just moves the same error message to the
> next line.

It looks fine to me too.  I think that either the bootstrap lexer
or parser must be broken on your machine.

> I have not regenerated the bison-generated parser source file - it is
> the one that comes with PostgreSQL 7.4.2.

Are you speaking specifically of

src/backend/bootstrap/bootparse.c
src/backend/bootstrap/bootscanner.c
src/backend/bootstrap/bootstrap_tokens.h

Make doubly sure that these didn't get regenerated.  If they didn't, the
only other theory that comes to mind is a compiler bug.  Which compiler
are you using exactly?

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to