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 B5A8DD1B342 for ; Tue, 29 Jun 2004 13:18:26 -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 64744-09 for ; Tue, 29 Jun 2004 16:18:25 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 90DB4D1B29D for ; Tue, 29 Jun 2004 13:18:20 -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 i5TGIHGG001625; Tue, 29 Jun 2004 12:18:17 -0400 (EDT) To: Alvaro Sanchez-Mariscal Cc: pgsql-sql@postgresql.org Subject: Re: Unrecognized node type In-reply-to: <1087916170.2821.23.camel@mariscal> References: <1087916170.2821.23.camel@mariscal> Comments: In-reply-to Alvaro Sanchez-Mariscal message dated "Tue, 22 Jun 2004 16:56:10 +0200" Date: Tue, 29 Jun 2004 12:18:17 -0400 Message-ID: <1624.1088525897@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/292 X-Sequence-Number: 18237 Alvaro Sanchez-Mariscal writes: > I've tried to import a dump from pg_dump. Everything goes ok, but at > certain point, in the following sentence: > CREATE TABLE ca_persona ( > ... > lssi boolean DEFAULT NULL::boolean, > postal boolean DEFAULT NULL::boolean, > tele_marketing boolean DEFAULT NULL::boolean, > ... > ) > I get the following error message: > "ERROR: unrecognized node type: 656". I couldn't duplicate this: regression=# CREATE TABLE ca_persona ( regression(# lssi boolean DEFAULT NULL::boolean, regression(# postal boolean DEFAULT NULL::boolean, regression(# tele_marketing boolean DEFAULT NULL::boolean); CREATE TABLE regression=# \d ca_persona Table "public.ca_persona" Column | Type | Modifiers ----------------+---------+----------------------- lssi | boolean | default NULL::boolean postal | boolean | default NULL::boolean tele_marketing | boolean | default NULL::boolean regression=# insert into ca_persona default values; INSERT 154658 1 regression=# I suppose there's some other factor involved in the problem that you didn't show us. > My question is simple: what the h... can I do? :-) As far as finding the bug, you need to provide a complete, self-contained test case. As far as loading the schema, how about just removing the DEFAULT clauses? "default null" is the default behavior anyway. regards, tom lane