postgresql/src/bin/pg_dump
Tom Lane 9feefedf9e 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:15 -05:00
..
po Translation updates 2015-02-01 23:23:40 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Fix pg_dump's heuristic for deciding which casts to dump. 2015-02-10 22:38:15 -05:00
compress_io.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
compress_io.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
dumputils.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
dumputils.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
keywords.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Update copyright for 2015 2015-01-06 11:43:47 -05:00
nls.mk Add missing source files to nls.mk 2014-07-15 10:10:42 -04:00
parallel.c vacuumdb: enable parallel mode 2015-01-23 15:02:45 -03:00
parallel.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_backup_archiver.c Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:42 -05:00
pg_backup_archiver.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_custom.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_db.c Replace a bunch more uses of strncpy() with safer coding. 2015-01-24 13:05:42 -05:00
pg_backup_db.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_directory.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_backup_null.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_tar.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03: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 Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_backup_utils.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_backup.h Fix portability breakage in pg_dump. 2015-01-11 13:28:26 -05:00
pg_dump_sort.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_dump.c Fix pg_dump's heuristic for deciding which casts to dump. 2015-02-10 22:38:15 -05:00
pg_dump.h Fix pg_dump's heuristic for deciding which casts to dump. 2015-02-10 22:38:15 -05:00
pg_dumpall.c Update copyright for 2015 2015-01-06 11:43:47 -05:00
pg_restore.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00