Re: pg_restore casts check constraints differently

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore casts check constraints differently
Дата
Msg-id 10332.1459305646@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_restore casts check constraints differently  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: pg_restore casts check constraints differently  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tue, Mar 29, 2016 at 2:45 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It's not really different.  What you're seeing is pg_dump (or actually
>> ruleutils.c) choosing to dump some implicit casts explicitly to ensure
>> that the expression is parsed the same way next time.

> ​Why don't we just use ruleutils.c to generate \d results so that what we
> end up showing is canonical?

We do.  AFAIK, what psql's \d shows in these cases is the same as what
pg_dump will print.  Joshua's complaint is that it isn't necessarily
identical to what was input.

            regards, tom lane


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: debugging server connection issue
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: pg_restore casts check constraints differently