Re: pg_dump ignore CASTs when using --schema

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump ignore CASTs when using --schema
Дата
Msg-id 29576.1457115805@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump ignore CASTs when using --schema  (Felix Ostmann <felix.ostmann@gmail.com>)
Ответы Re: pg_dump ignore CASTs when using --schema  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
Felix Ostmann <felix.ostmann@gmail.com> writes:
> we have a problem with pg_dump and CAST.

Casts don't have names, therefore they don't have schemas, therefore
a dump that is restricted to a particular schema won't select them.
So this isn't a bug; it's operating as designed.

This is kind of unfortunate in many scenarios, but it's hard to see a
principled way around it.  You might propose something like pretending
that a cast is in the same schema as its implementation function, but
what about casts that have no implementation function?  Likewise,
tying it to the schema of either the input or the output datatype
seems arbitrary and about as likely to be wrong as right.

            regards, tom lane

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: BUG #13844: Logical decoding bug with subxact + row locking
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #13844: Logical decoding bug with subxact + row locking