pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Dave Page <dpage@pgadmin.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Edmund Horner <ejrh00@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
Date: Wed, 13 Jun 2012 11:14:14 -0400
Message-ID: <20120613151414.GD4419@momjian.us> (raw)
In-Reply-To: <CA+OCxoxYk_G+XBjMPVxx2tn11m8-phH1jga+y5M_=WtM7qWU+A@mail.gmail.com>
References: <CAMyN-kAsMj18rV9eshn4JX4Dn-JXbLMzC+eZ6wrnQ76FavaFfA@mail.gmail.com>
	<9940.1339467780@sss.pgh.pa.us>
	<20120613145101.GB4419@momjian.us>
	<CA+OCxoxYk_G+XBjMPVxx2tn11m8-phH1jga+y5M_=WtM7qWU+A@mail.gmail.com>

On Wed, Jun 13, 2012 at 04:08:20PM +0100, Dave Page wrote:
> On Wed, Jun 13, 2012 at 3:51 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > On Mon, Jun 11, 2012 at 10:23:00PM -0400, Tom Lane wrote:
> >> Hm, that patch seems to be several bricks shy of a load.  I will fix
> >> two obvious bugs in it:
> >>
> >> (1) not dump core on boxes where printf("%s", NULL) dumps core;
> >>
> >> (2) not try to call adjust_data_dir before complaining for lack of
> >> a -D switch; since adjust_data_dir does not do anything to the value
> >> of pg_config, it's just silly to do things in that order.
> >>
> >> However,
> >>
> >> > I note that "postgres -C data_directory" will refuse to run on the
> >> > command line because I've got admin privileges in Windows, and that
> >> > pg_ctl normally starts postgres.exe using CreateRestrictedProcess.
> >> > But it does not do so for the popen call in adjust_data_dir.
> >>
> >> if that actually is a third bug, as seems likely, somebody with access
> >> to a windows environment will need to deal with it.
> >
> > I think you have to use RUNAS when using 'pg_ctl' or 'postgres' on Windows.
> 
> pg_ctl should work as an administrative user, as it'll irrevocably
> drop unwanted privileges. postgres won't though.

The user was geting an error trying to start the postmaster, which I
think matches your description.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (13+ messages)  latest in thread

Message-ID: <20120613151414.GD4419@momjian.us>
Permalink:  ../20120613151414.GD4419@momjian.us/
Also on:    postgresql.org/message-id/20120613151414.GD4419@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, dpage@pgadmin.org, tgl@sss.pgh.pa.us, ejrh00@gmail.com
  Subject: Re: 9.2 beta2 - pg_ctl crashes on Win32 when neither PGDATA nor -D specified
  In-Reply-To: <20120613151414.GD4419@momjian.us>
  References: <CAMyN-kAsMj18rV9eshn4JX4Dn-JXbLMzC+eZ6wrnQ76FavaFfA@mail.gmail.com> <9940.1339467780@sss.pgh.pa.us> <20120613145101.GB4419@momjian.us> <CA+OCxoxYk_G+XBjMPVxx2tn11m8-phH1jga+y5M_=WtM7qWU+A@mail.gmail.com> <20120613151414.GD4419@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox