From: Tom Lane <tgl@sss.pgh.pa.us>
To: Viktor Bojović <viktor.bojovic@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: unknown type
Date: Wed, 04 May 2011 09:58:11 -0400
Message-ID: <10133.1304517491@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTi=ZO6V-qv-BpE1VRCqgkPnVAEbb1g@mail.gmail.com>
References: <BANLkTi=ZO6V-qv-BpE1VRCqgkPnVAEbb1g@mail.gmail.com>
=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor.bojovic@gmail.com> 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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, viktor.bojovic@gmail.com
Subject: Re: unknown type
In-Reply-To: <10133.1304517491@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