Re: [BUGS] 'pg_ctl restart' confused about pathname to postgresql.conf

2012-08-16 Thread Bruce Momjian
I have applied the attached doc patch to document the problem with relative paths and pg_ctl restart. --- On Sun, Oct 23, 2011 at 08:49:25PM -0400, Josh Kupershmidt wrote: > On Sat, Oct 22, 2011 at 12:13 PM, Tom Lane wrote:

Re: [BUGS] 'pg_ctl restart' confused about pathname to postgresql.conf

2011-10-23 Thread Josh Kupershmidt
On Sat, Oct 22, 2011 at 12:13 PM, Tom Lane wrote: > I think the reason it has a problem is that this is what's left in > postmaster.opts: > > /home/tgl/pgsql/bin/postgres "-D" "baz" > > (which is an accurate representation of the command line from startup) > and that -D switch gets fed to the post

Re: [BUGS] 'pg_ctl restart' confused about pathname to postgresql.conf

2011-10-22 Thread Tom Lane
Josh Kupershmidt writes: > You can run the test case stand-alone, though it's probably easier to > see what's going on if you just copy-paste into your terminal: at the > end you should wind up with your current directory "/tmp/foo/". You > should see that the last command, "pg_ctl -D $DATADIR res

[BUGS] 'pg_ctl restart' confused about pathname to postgresql.conf

2011-10-21 Thread Josh Kupershmidt
I've noticed that I occasionally see errors from "pg_ctl restart" claiming: postgres cannot access the server configuration file ... No such file or directory depending on what directory I execute "pg_ctl restart" from, and where the postmaster was originally started from. I boiled this problem