X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D90473AB19F for ; Fri, 10 Dec 2004 21:49:04 +0000 (GMT) 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 80375-01 for ; Fri, 10 Dec 2004 21:48:27 +0000 (GMT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by svr1.postgresql.org (Postfix) with ESMTP id E3DD63AC2AE for ; Fri, 10 Dec 2004 18:45:16 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by svr4.postgresql.org (Postfix) with ESMTP id B2AEC5B4956 for ; Thu, 9 Dec 2004 20:21:57 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 70so414485wra for ; Thu, 09 Dec 2004 12:19:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=JVaozk7VaZSDYK1sCK9AVQlyLxpOCkdp2oo7kMAVRJnvQiOyoUY8zwdZsC8GXJxES2+ZOJuDvxHJW5kH4FGpNVqT1WRxjW8ANOLIIkNG4TQSBnkxAi46XHd5wGoH++/2r8B5Z1X+iBs6NHfN6Z8/kHoaTz8btq+OROtFv6Hrwr4= Received: by 10.54.15.33 with SMTP id 33mr1494269wro; Thu, 09 Dec 2004 12:19:56 -0800 (PST) Received: by 10.54.33.69 with HTTP; Thu, 9 Dec 2004 12:19:56 -0800 (PST) Message-ID: Date: Thu, 9 Dec 2004 15:19:56 -0500 From: Alex Beamish Reply-To: Alex Beamish To: pgsql-sql@postgresql.org Subject: parse error at or near "(" -- Huh??? Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200412/70 X-Sequence-Number: 19690 Hi, I'm getting a frustrating error ERROR: parser: parse error at or near "(" at character 201 in a CREATE TABLE statement from an SQL script that I'm running from within a Perl script. When I run the same script from the command line, either as a regular user or as root, it works fine. The SQL is --------------------------------------------------------- CREATE SEQUENCE "users_id" START 1 INCREMENT 1 MAXVALUE 2147483647 MINVALUE 1 CACHE 1; CREATE TABLE "users" ( "u_id" integer DEFAULT nextval('users_id'::text) NOT NULL, "u_name" text NOT NULL, "u_password" text NOT NULL, "u_console_flag" integer DEFAULT 0, Constraint "users_pkey" Primary Key ("u_id") ); --------------------------------------------------------- The 'console_flag' field was recently added and is close-ish to the point that I think the parser is failing. And speaking of that, how I am to interpret 'character 201' -- should I collapse the SQL into it's minimal state (least number spaces) and go from that? Thanks. Alex ps Tried to join the list using http://webmail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&func=lists-long-full&extra=pgsql-sql but got a server timeout. :(