From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cook, Tom <Tom.Cook@subcorp.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: PostgreSQL 7.4.2 on SunOS 4.1.4
Date: Wed, 09 Jun 2004 10:48:09 -0400
Message-ID: <21008.1086792489@sss.pgh.pa.us> (raw)
In-Reply-To: <477E84FEC58EC44BB5AA084A18BB11B202F88F21@snowball.asc.com.au>
References: <477E84FEC58EC44BB5AA084A18BB11B202F88F21@snowball.asc.com.au>
"Cook, Tom" <Tom.Cook@subcorp.com.au> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Tom.Cook@subcorp.com.au
Subject: Re: PostgreSQL 7.4.2 on SunOS 4.1.4
In-Reply-To: <21008.1086792489@sss.pgh.pa.us>
References: <477E84FEC58EC44BB5AA084A18BB11B202F88F21@snowball.asc.com.au> <21008.1086792489@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox