Re: BUG #16259: Cannot Use "pg_ctl start -l logfile" on Clean Install on Windows Server 2012/2016

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Heath Lord <heath.lord@crunchydata.com>, "Jonathan S. Katz" <jkatz@postgresql.org>, pgsql-bugs@lists.postgresql.org
Date: 2020-02-15T05:22:18Z
Lists: pgsql-bugs
Alexander Lakhin <exclusion@gmail.com> writes:
>> Alexander, this was your patch to start with ... any thoughts?

> Yes, it was my omission. Please look at the improved patch.
> It works for me in both command prompts and still gives a meaningful
> message on error.

This seems basically reasonable but I'm not in a position to test it.
Heath, can you see if this improves matters for you?

			regards, tom lane



Commits

  1. Try again to work around Windows' ERROR_SHARING_VIOLATION in pg_ctl.