pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Asif Naeem <anaeem.it@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: pg_upgrade failure on Windows Server
Date: Thu, 12 Mar 2015 11:41:45 -0300
Message-ID: <20150312144145.GY3291@alvh.no-ip.org> (raw)
In-Reply-To: <CAB7nPqTdf7rqTCi4-e--Zw28Cou_Ki6B4tXVZYBH=ZbgaSVy7w@mail.gmail.com>
References: <CAA4eK1Kp+KY8K-wDicAhRawt2oA_e_dPHkOono5bSFNvTqA2rw@mail.gmail.com>
	<CAB7nPqTi0VXdZoSkAW91SHoRsOQOm0YQWHRfMGRmNCJFMftsbQ@mail.gmail.com>
	<CAEB4t-N+U7Nm8xLD0Ak7Ozvi-ZuMPGhtGk1wRNA6SriK-eN-Bg@mail.gmail.com>
	<CAB7nPqSdKwtBeSq-TVwP5U4nNqHqfpKdWE1L+=P3Vxcfx820kA@mail.gmail.com>
	<CAEB4t-NCd5MHNSPCgr8MFroa479+5s2Kx=nVpq=DCXS5YADp+w@mail.gmail.com>
	<CAB7nPqSK-YDBrszwWCAQH_sgXdO23Ja-LjqpnqbbR=ukm_qj4w@mail.gmail.com>
	<CAEB4t-NLYHDET3cBM4vAqRJ-giBU0wuGag4SfdjB=KuZe2Z41Q@mail.gmail.com>
	<20150312135056.GT3291@alvh.no-ip.org>
	<CAB7nPqTtE_NcBa9syo4m9beUOWOsGW+p1ctF6haUGi6GQxjbNQ@mail.gmail.com>
	<CAB7nPqTdf7rqTCi4-e--Zw28Cou_Ki6B4tXVZYBH=ZbgaSVy7w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier wrote:
> On Thu, Mar 12, 2015 at 11:23 PM, Michael Paquier wrote:
> > On Thu, Mar 12, 2015 at 6:50 AM, Alvaro Herrera wrote:
> > In this part the only difference is a spawn of cmd /c, but I don't see
> > why it is useful to spawn a new command prompt here for this case, so
> > we could just drop this part. Looking at the log history, this has
> > been added since this code creation..
> 
> Taking back my words here. We definitely want to spawn a new process
> in the case of pg_regress, so I think that the best thing to do would
> be to pass the to-be-launched command to get_restrict_token(), and be
> careful with WaitForSingleObject and GetExitCodeProcess() as there are
> cases where we cannot wait for a process, so we are going to need a
> control flag, or to let the callers of get_restricted_token() do the
> wait themselves. I would think that the latter is better, additional
> opinions being welcome.

Maybe we want a specialized routine for pg_regress; maybe
get_restricted_token would call it with some args set to null or false
as appropriate.  My point is not to make the other callers of
get_restricted_token more complex.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (35+ messages)  latest in thread

Message-ID: <20150312144145.GY3291@alvh.no-ip.org>
Permalink:  ../20150312144145.GY3291@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150312144145.GY3291@alvh.no-ip.org

 · 

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: alvherre@2ndquadrant.com, michael.paquier@gmail.com, anaeem.it@gmail.com, amit.kapila16@gmail.com, bruce@momjian.us
  Subject: Re: pg_upgrade failure on Windows Server
  In-Reply-To: <20150312144145.GY3291@alvh.no-ip.org>
  References: <CAA4eK1Kp+KY8K-wDicAhRawt2oA_e_dPHkOono5bSFNvTqA2rw@mail.gmail.com> <CAB7nPqTi0VXdZoSkAW91SHoRsOQOm0YQWHRfMGRmNCJFMftsbQ@mail.gmail.com> <CAEB4t-N+U7Nm8xLD0Ak7Ozvi-ZuMPGhtGk1wRNA6SriK-eN-Bg@mail.gmail.com> <CAB7nPqSdKwtBeSq-TVwP5U4nNqHqfpKdWE1L+=P3Vxcfx820kA@mail.gmail.com> <CAEB4t-NCd5MHNSPCgr8MFroa479+5s2Kx=nVpq=DCXS5YADp+w@mail.gmail.com> <CAB7nPqSK-YDBrszwWCAQH_sgXdO23Ja-LjqpnqbbR=ukm_qj4w@mail.gmail.com> <CAEB4t-NLYHDET3cBM4vAqRJ-giBU0wuGag4SfdjB=KuZe2Z41Q@mail.gmail.com> <20150312135056.GT3291@alvh.no-ip.org> <CAB7nPqTtE_NcBa9syo4m9beUOWOsGW+p1ctF6haUGi6GQxjbNQ@mail.gmail.com> <CAB7nPqTdf7rqTCi4-e--Zw28Cou_Ki6B4tXVZYBH=ZbgaSVy7w@mail.gmail.com> <20150312144145.GY3291@alvh.no-ip.org>

* 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