Re: Custom types and pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Custom types and pg_dump
Дата
Msg-id 2845.1240326965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Custom types and pg_dump  ("Roderick A. Anderson" <raanders@cyber-office.net>)
Ответы Re: Custom types and pg_dump  ("Roderick A. Anderson" <raanders@cyber-office.net>)
Список pgsql-general
"Roderick A. Anderson" <raanders@cyber-office.net> writes:
> While and after doing a import ("\i file_dump") I notice one table had
> two attributes with a type of "unknown".

Is it a table, or a view?  This is hardly unheard-of for views,
consider

regression=# create view v1 as select 'unmarked string' as c1;
WARNING:  column "c1" has type "unknown"
DETAIL:  Proceeding with relation creation anyway.
CREATE VIEW
regression=# \d v1
       View "public.v1"
 Column |  Type   | Modifiers
--------+---------+-----------
 c1     | unknown |
View definition:
 SELECT 'unmarked string' AS c1;

It's possible but much less common to have such things in plain tables.

> So the question is; is it possible to have a custom type in a cluster
> that is accessible/usable in a database but isn't picked up by pg_dump?

This has got nothing to do with missing types.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Roderick A. Anderson"
Дата:
Сообщение: Custom types and pg_dump
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: Custom types and pg_dump