]> granicus.if.org Git - postgresql/commit
In pg_regress, remove the temporary installation upon successful exit.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jan 2015 04:44:30 +0000 (23:44 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jan 2015 04:44:30 +0000 (23:44 -0500)
commitf4f522deb6b40d9f1d4ed58d9aa2b0df2fe92f7b
treead97214adf8954b5d2e61d8dbfabcce147c77da4
parentb87c1dcef3aae93ddccc2877e943cc1e29f7a5f3
In pg_regress, remove the temporary installation upon successful exit.

This results in a very substantial reduction in disk space usage during
"make check-world", since that sequence involves creation of numerous
temporary installations.  It should also help a bit in the buildfarm, even
though the buildfarm script doesn't create as many temp installations,
because the current script misses deleting some of them; and anyway it
seems better to do this once in one place rather than expecting that
script to get it right every time.

In 9.4 and HEAD, also undo the unwise choice in commit b1aebbb6a86e96d7
to report strerror(errno) after a rmtree() failure.  rmtree has already
reported that, possibly for multiple failures with distinct errnos; and
what's more, by the time it returns there is no good reason to assume
that errno still reflects the last reportable error.  So reporting errno
here is at best redundant and at worst badly misleading.

Back-patch to all supported branches, so that future revisions of the
buildfarm script can rely on this behavior.
src/test/regress/pg_regress.c