Skip site navigation (1) Skip section navigation (2)

Re: unknown type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Viktor Bojović <viktor(dot)bojovic(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: unknown type
Date: 2011-05-04 13:58:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor(dot)bojovic(at)gmail(dot)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

In response to


pgsql-admin by date

Next:From: Viktor BojovićDate: 2011-05-04 14:03:20
Subject: Re: unknown type
Previous:From: Viktor BojovićDate: 2011-05-04 13:14:35
Subject: unknown type

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group