Re: pg_restore casts check constraints differently - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_restore casts check constraints differently
Date
Msg-id 10332.1459305646@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_restore casts check constraints differently  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: pg_restore casts check constraints differently  ("David G. Johnston" <david.g.johnston@gmail.com>)
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: debugging server connection issue
Next
From: "David G. Johnston"
Date:
Subject: Re: pg_restore casts check constraints differently