postgresql/contrib/pg_upgrade
Tom Lane 3d6ec663bb Improve pg_upgrade's load_directory() function.
Error out on out-of-memory, rather than returning -1, which the sole
existing caller wasn't checking for anyway.  There doesn't seem to be
any use-case for making the caller check for failure here.

Detect failure return from readdir().

Use a less platform-dependent method of calculating the entrysize.
It's possible, but not yet confirmed, that this explains bug #6733,
in which Mike Wilson reports a pg_upgrade crash that did not occur
in 9.1.  (Note that load_directory is effectively new code in 9.2,
at least on platforms that have scandir().)

Fix up comments, avoid uselessly using two counters, reduce the number
of realloc calls to something sane.
2012-07-18 01:13:20 -04:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
check.c In pg_upgrade, verify that the install user has the same oid on both 2012-06-13 12:19:18 -04:00
controldata.c pg_upgrade: fix off-by-one mistake in snprintf 2012-06-28 23:37:27 -04:00
dump.c In pg_upgrade, add various logging improvements: 2012-03-12 19:48:03 -04:00
exec.c Make the pg_upgrade log files contain actual commands 2012-06-29 11:39:11 -04:00
file.c Improve pg_upgrade's load_directory() function. 2012-07-18 01:13:20 -04:00
function.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
info.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
Makefile Run "make all" as a prerequisite of "make check" 2011-12-27 20:27:24 +02:00
option.c Update pg_upgrade comments for recent configpath fix. 2012-07-06 09:39:22 -04:00
page.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pg_upgrade.c pg_upgrade: abstract out copying of files from old cluster to new 2012-07-05 11:38:42 -04:00
pg_upgrade.h Improve pg_upgrade's load_directory() function. 2012-07-18 01:13:20 -04:00
relfilenode.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
server.c Improve pg_upgrade wording for pg_ctl start failure; could be 2012-06-15 19:57:01 -04:00
tablespace.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
test.sh Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
TESTING Remove whitespace from end of lines 2012-05-15 22:19:41 +03:00
util.c Improve pg_upgrade's load_directory() function. 2012-07-18 01:13:20 -04:00
version_old_8_3.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
version.c In pg_upgrade, add various logging improvements: 2012-03-12 19:48:03 -04:00