]> granicus.if.org Git - postgresql/commit
Clean up some copied-and-pasted code in pg_upgrade.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Dec 2010 19:17:46 +0000 (14:17 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Dec 2010 19:17:46 +0000 (14:17 -0500)
commit3864afa1d1478f7a76fde1ea160a7bc8f5d5b203
tree6e37227d955beb2b6646a2b6bf9cb379ef70754c
parent1319002e2ee166c06b38cdbc5e8508c7205fa115
Clean up some copied-and-pasted code in pg_upgrade.

1. Don't reimplement S_ISDIR() and S_ISREG() badly.
2. Don't reimplement access() badly.

This code appears to have been copied from ancient versions of the
corresponding backend routines, and not patched to incorporate subsequent
fixes (see my commits of 2008-03-31 and 2010-01-14 respectively).
It might be a good idea to change it to just *call* those routines,
but for now I'll just transpose these fixes over.
contrib/pg_upgrade/exec.c
contrib/pg_upgrade/file.c