Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 479A41337B81 for ; Wed, 4 May 2011 10:58:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 87554-03 for ; Wed, 4 May 2011 13:58:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E3A291337B92 for ; Wed, 4 May 2011 10:58:12 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p44DwBP7010134; Wed, 4 May 2011 09:58:11 -0400 (EDT) To: =?UTF-8?Q?Viktor_Bojovi=C4=87?= cc: pgsql-admin@postgresql.org Subject: Re: unknown type In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Viktor_Bojovi=C4=87?= message dated "Wed, 04 May 2011 15:14:35 +0200" Date: Wed, 04 May 2011 09:58:11 -0400 Message-ID: <10133.1304517491@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/37 X-Sequence-Number: 37474 =?UTF-8?Q?Viktor_Bojovi=C4=87?= writes: > while restoring backup i have received these messages > WARNING: column "id" has type "unknown" > DETAIL: Proceeding with relation creation anyway. It's most likely a view with an output column that's an undecorated string literal. > I have tried to grep schema-only dump file, but i didn't find word unknown. > When i have extracted all mentioned ID fields i didn't find any field which > is not of type integer,smallint or varchar. > How can i find out which table has that unknown type? Try something like select attrelid::regclass, attname from pg_attribute where atttypid = 'unknown'::regtype; regards, tom lane