Make sure -D is an absolute path when starting server on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Apr 2014 22:42:13 +0000 (18:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Apr 2014 22:42:13 +0000 (18:42 -0400)
commit9aca51250681d2e8d18ed1d73e7cd1283d1cf303
treeb1b9e945db659fd59bbdf8aacf3f21aad18f5b15
parent8120c7452a51a773ad7a249b55557439f39d41ef
Make sure -D is an absolute path when starting server on Windows.

This is needed because Windows services may get started with a different
current directory than where pg_ctl is executed.  We want relative -D
paths to be interpreted relative to pg_ctl's CWD, similarly to what
happens on other platforms.

In support of this, move the backend's make_absolute_path() function
into src/port/path.c (where it probably should have been long since)
and get rid of the rather inferior version in pg_regress.

Kumar Rajeev Rastogi, reviewed by MauMau
src/backend/utils/init/miscinit.c
src/bin/pg_ctl/pg_ctl.c
src/include/miscadmin.h
src/include/port.h
src/port/path.c
src/test/regress/pg_regress.c