pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedunknown type
3+ messages / 2 participants
[nested] [flat]
* unknown type
@ 2011-05-04 13:14 Viktor Bojović <viktor.bojovic@gmail.com>
2011-05-04 13:58 ` Re: unknown type Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Viktor Bojović @ 2011-05-04 13:14 UTC (permalink / raw)
To: pgsql-admin
Hi,
while restoring backup i have received these messages
WARNING: column "id" has type "unknown"
DETAIL: Proceeding with relation creation anyway.
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?
Thanx in advance
--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: unknown type
2011-05-04 13:14 unknown type Viktor Bojović <viktor.bojovic@gmail.com>
@ 2011-05-04 13:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-05-04 14:03 ` Re: unknown type Viktor Bojović <viktor.bojovic@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2011-05-04 13:58 UTC (permalink / raw)
To: Viktor Bojović <viktor.bojovic@gmail.com>; +Cc: pgsql-admin
=?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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: unknown type
2011-05-04 13:14 unknown type Viktor Bojović <viktor.bojovic@gmail.com>
2011-05-04 13:58 ` Re: unknown type Tom Lane <tgl@sss.pgh.pa.us>
@ 2011-05-04 14:03 ` Viktor Bojović <viktor.bojovic@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Viktor Bojović @ 2011-05-04 14:03 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
On Wed, May 4, 2011 at 3:58 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> =?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
>
that solved the problem. thanx
--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-05-04 14:03 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-04 13:14 unknown type Viktor Bojović <viktor.bojovic@gmail.com>
2011-05-04 13:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-05-04 14:03 ` Viktor Bojović <viktor.bojovic@gmail.com>
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