pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Payal Singh <payals1@umbc.edu>
To: Bruce Momjian <bruce@momjian.us>
Cc: Craig Ringer <ringerc@ringerc.id.au>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Problem with pg_upgrade
Date: Thu, 05 Jul 2012 18:28:31 -0400
Message-ID: <1316.1341527311@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK4ounyW7oGprZuVRv8tfVROTimeY49yL4HRcq+Yqnt0P-8PXw@mail.gmail.com>
References: <CAK4ounw9CmG0_vUwwtsr2QXXhOJJ8E9g5mw-vuXAo57KSTQFDg@mail.gmail.com>
	<4FF5BD8A.5010307@ringerc.id.au>
	<CAK4ounyW7oGprZuVRv8tfVROTimeY49yL4HRcq+Yqnt0P-8PXw@mail.gmail.com>

Payal Singh <payals1@umbc.edu> writes:
> On Thu, Jul 5, 2012 at 12:15 PM, Craig Ringer <ringerc@ringerc.id.au> wrote:
>> If you start 9.1 on a copy of the backup then cleanly stop it again, does
>> pg_upgrade then run?

> Thank you. That worked.

ISTM that pg_upgrade should check that the old cluster was shut down
cleanly, ie pg_control has state = "shut down".  AFAICT from some
testing, it currently only checks that there is no postmaster.pid file,
which is easily bypassed by users who might not realize that it's not
safe to run pg_upgrade against a filesystem backup.

BTW, I also noticed while trying to test this that pg_upgrade is
currently completely broken for the case of taking PGDATAOLD or
PGDATANEW from the environment rather than switches.  This is because
the existing coding in option.c fails to set up the "pgconfig" fields
in such cases.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <1316.1341527311@sss.pgh.pa.us>
Permalink:  ../1316.1341527311@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1316.1341527311@sss.pgh.pa.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: tgl@sss.pgh.pa.us, payals1@umbc.edu, bruce@momjian.us, ringerc@ringerc.id.au
  Subject: Re: Problem with pg_upgrade
  In-Reply-To: <1316.1341527311@sss.pgh.pa.us>
  References: <CAK4ounw9CmG0_vUwwtsr2QXXhOJJ8E9g5mw-vuXAo57KSTQFDg@mail.gmail.com> <4FF5BD8A.5010307@ringerc.id.au> <CAK4ounyW7oGprZuVRv8tfVROTimeY49yL4HRcq+Yqnt0P-8PXw@mail.gmail.com> <1316.1341527311@sss.pgh.pa.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