postgresql/src/bin
Tom Lane 14794f9b8e Fix pg_dump's heuristic for deciding which casts to dump.
Back in 2003 we had a discussion about how to decide which casts to dump.
At the time pg_dump really only considered an object's containing schema
to decide what to dump (ie, dump whatever's not in pg_catalog), and so
we chose a complicated idea involving whether the underlying types were to
be dumped (cf commit a6790ce857).  But users
are allowed to create casts between built-in types, and we failed to dump
such casts.  Let's get rid of that heuristic, which has accreted even more
ugliness since then, in favor of just looking at the cast's OID to decide
if it's a built-in cast or not.

In passing, also fix some really ancient code that supposed that it had to
manufacture a dependency for the cast on its cast function; that's only
true when dumping from a pre-7.3 server.  This just resulted in some wasted
cycles and duplicate dependency-list entries with newer servers, but we
might as well improve it.

Per gripes from a number of people, most recently Greg Sabino Mullane.
Back-patch to all supported branches.
2015-02-10 22:38:26 -05:00
..
initdb Translation updates 2015-02-01 22:57:55 -05:00
pg_basebackup Translation updates 2014-07-21 00:58:58 -04:00
pg_config Translation updates 2015-02-01 22:57:55 -05:00
pg_controldata Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
pg_ctl Translation updates 2015-02-01 22:57:55 -05:00
pg_dump Fix pg_dump's heuristic for deciding which casts to dump. 2015-02-10 22:38:26 -05:00
pg_resetxlog Translation updates 2015-02-01 22:57:55 -05:00
pgevent Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
psql Translation updates 2015-02-01 22:57:55 -05:00
scripts Remove tabs after spaces in C comments 2014-05-06 11:26:26 -04:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00