pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Asif Naeem <anaeem.it@gmail.com>
Cc: Michael Paquier <michael.paquier@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 10:50:56 -0300
Message-ID: <20150312135056.GT3291@alvh.no-ip.org> (raw)
In-Reply-To: <CAEB4t-NLYHDET3cBM4vAqRJ-giBU0wuGag4SfdjB=KuZe2Z41Q@mail.gmail.com>
References: <20150121181411.GD3885@momjian.us>
	<20150121183142.GU1663@alvh.no-ip.org>
	<20150121183649.GH3885@momjian.us>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Asif Naeem wrote:
> Thank you Michael. Good suggestion, PFA updated patch, it don't have
> dependency on "progname" global variable any more and expecting this value
> as related function argument.

We have another copy of this in pg_ctl, which looks pretty much
identical except there's some additional stuff at the bottom.  Would it
make sense to add those additional "Job"-related things as a separate
routine, so that we can remove the duplicate copy of the "restricted
token" code, and have pg_ctl use get_restricted_process from src/common
instead?

There is a further copy of very similar stuff in pg_regress.c, but what
it does is slightly different; not sure how difficult it would be to
refactor that one too.

Is this a backpatchable bug fix, or are we considering this only for the
master branch?

-- 
Á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: <20150312135056.GT3291@alvh.no-ip.org>
Permalink:  ../20150312135056.GT3291@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150312135056.GT3291@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, anaeem.it@gmail.com, michael.paquier@gmail.com, amit.kapila16@gmail.com, bruce@momjian.us
  Subject: Re: pg_upgrade failure on Windows Server
  In-Reply-To: <20150312135056.GT3291@alvh.no-ip.org>
  References: <20150121181411.GD3885@momjian.us> <20150121183142.GU1663@alvh.no-ip.org> <20150121183649.GH3885@momjian.us> <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>

* 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