X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 430F0D1B192 for ; Wed, 9 Jun 2004 11:48:09 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46514-05 for ; Wed, 9 Jun 2004 14:48:10 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 11DE8D1B18A for ; Wed, 9 Jun 2004 11:48:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i59Em9A5021009; Wed, 9 Jun 2004 10:48:09 -0400 (EDT) To: "Cook, Tom" Cc: pgsql-admin@postgresql.org Subject: Re: PostgreSQL 7.4.2 on SunOS 4.1.4 In-reply-to: <477E84FEC58EC44BB5AA084A18BB11B202F88F21@snowball.asc.com.au> References: <477E84FEC58EC44BB5AA084A18BB11B202F88F21@snowball.asc.com.au> Comments: In-reply-to "Cook, Tom" message dated "Wed, 09 Jun 2004 13:11:28 +0800" Date: Wed, 09 Jun 2004 10:48:09 -0400 Message-ID: <21008.1086792489@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/118 X-Sequence-Number: 13778 "Cook, Tom" 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