Don't use an Msys virtual path to create a tablespace
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 19 Mar 2018 21:55:36 +0000 (08:25 +1030)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 19 Mar 2018 21:55:36 +0000 (08:25 +1030)
commit9ad21a6957ff2d8743e9a59ba062d3c009b24ec4
treef9f818697bc91105b5cd457fc28f5253a7420522
parent6fbd5cce22ebd2203d99cd7dcd179d0e1138599e
Don't use an Msys virtual path to create a tablespace

The new unlogged_reinit recovery tests create a new tablespace using
TestLib.pm's tempdir. However, on msys that function returns a virtual
path that isn't understood by Postgres. Here we add a new function to
TestLib.pm to turn such a path into a real path on the underlying file
system, and use it in the new test to create the tablespace. The new
function is essentially a NOOP everywhere but msys.
src/test/perl/TestLib.pm
src/test/recovery/t/014_unlogged_reinit.pl