postgresql/src/bin/pg_dump
Tom Lane a4e871caad 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:20 -05:00
..
po Translation updates 2015-02-01 23:08:39 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
compress_io.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
compress_io.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dumputils.c Remove tabs after spaces in C comments 2014-05-06 11:26:28 -04:00
dumputils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
keywords.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
nls.mk Translation updates 2013-09-02 02:28:21 -04:00
parallel.c Fix assorted confusion between Oid and int32. 2014-12-11 15:41:23 -05:00
parallel.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup.h Add parallel pg_dump option. 2013-03-24 11:27:20 -04:00
pg_backup_archiver.c Fix identify_locking_dependencies for schema-only dumps. 2014-09-26 11:23:43 -04:00
pg_backup_archiver.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup_custom.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_db.c Fix pg_restore's processing of old-style BLOB COMMENTS data. 2014-06-12 20:14:39 -04:00
pg_backup_db.h pg_dump: Further reduce reliance on global variables. 2012-02-07 10:07:02 -05:00
pg_backup_directory.c Properly check for readdir/closedir() failures 2014-03-21 13:45:11 -04:00
pg_backup_null.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_utils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_dump.c Fix pg_dump's heuristic for deciding which casts to dump. 2015-02-10 22:38:20 -05:00
pg_dump.h pg_upgrade: preserve database and relation minmxid values 2014-07-02 15:29:38 -04:00
pg_dump_sort.c Fix a performance problem in pg_dump's dump order selection logic. 2014-07-25 19:48:48 -04:00
pg_dumpall.c Fix pg_dumpall to restore its ability to dump from ancient servers. 2014-11-13 18:19:32 -05:00
pg_restore.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00