Re: unknown type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, May 4, 2011 at 3:58 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
=?UTF-8?Q?Viktor_Bojovi=C4=87?= <viktor.bojovic@xxxxxxxxx> 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


that solved the problem. thanx

--
---------------------------------------
Viktor BojoviÄ
---------------------------------------
Wherever I go, Murphy goes with me

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux