Re: Re: BUG #5065: pg_ctl start fails as administrator, with "could not locate matching postgres executable"

From: "Jesse Morris" <jmorris(at)coverity(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Dave Page" <dpage(at)pgadmin(dot)org>
Cc: "Andrew Dunstan" <andrew(at)dunslane(dot)net>, <pgsql-bugs(at)postgresql(dot)org>, "Magnus Hagander" <magnus(at)hagander(dot)net>
Subject: Re: Re: BUG #5065: pg_ctl start fails as administrator, with "could not locate matching postgres executable"
Date: 2009-10-20 21:25:18
Message-ID: FEFD432EA8DD2D45B110ACE93F8200FF0535E110@sf-ex-1.migcoverity.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

I've seen it happen on a wide range of win2k3 servers. From a fresh
image with nothing but VMWare tools under Add/Remove Programs, to a
heavily used shared dev server with MSVC, Cygwin, and tons of other
stuff. Some of our beta testers have also seen the issue. In fact I
can't really think of any win2k3 machine where it *had* worked. I
suspect the main reason reports of this failure are relatively rare is
that most people use the one-click installer which sets it up to run as
a non-administrator service account. (That's superior in many ways, but
it is not always an option for me.)

It looks like something that happens with Win2k3 only; XP had the user
instead of Administrators in the DACL, and Vista appears to have the
Session. I guess that's the only place that "AddUserToDacl" was even
necessary in the first place? I dunno.

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Tuesday, October 20, 2009 9:45 AM
> To: Dave Page
> Cc: Andrew Dunstan; Jesse Morris; pgsql-bugs(at)postgresql(dot)org; Magnus
> Hagander
> Subject: Re: [BUGS] Re: BUG #5065: pg_ctl start fails as
administrator,
> with "could not locate matching postgres executable"
>
> Dave Page <dpage(at)pgadmin(dot)org> writes:
> > On Tue, Oct 20, 2009 at 3:48 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Do we have any idea why?
>
> > Honestly? No. I have a vague hand-wavy idea about there being
> > something preventing us properly modifying the token of an existing
> > process in some configurations, but nothing even remotely
jello-like,
> > let alone concrete.
>
> After re-reading the thread I am struck by Jesse's comment that the
> current coding never worked at all for him. It seems like that must
> indicate an environment difference or installed-software difference
> compared to the setups where it does work. (Antivirus maybe?)
>
> Seems like it would be worth the trouble to identify exactly what the
> critical difference is.
>
> regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thach Anh Tran 2009-10-21 03:37:36 BUG #5129: LIMIT not correct.
Previous Message Kevin Grittner 2009-10-20 20:52:23 Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed

Browse pgsql-hackers by date

  From Date Subject
Next Message daveg 2009-10-20 21:47:17 Re: Application name patch - v2
Previous Message Peter Eisentraut 2009-10-20 21:11:27 alpha2 release notes