Re: pg_upgrade's bindir options could be optional

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_upgrade's bindir options could be optional
Date: 2011-05-08 00:19:28
Message-ID: 201105080019.p480JSE11768@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
> On fre, 2011-05-06 at 21:54 -0300, Alvaro Herrera wrote:
> > Excerpts from Tom Lane's message of vie may 06 17:11:35 -0300 2011:
> >
> > > As an example, the proposed defaults would be not only wrong, but
> > > disastrous in the perfectly-reasonable situation where the user has
> > > moved the old installation aside and then installed the new
> > executables
> > > in the same place the old ones used to be. My current RPM packaging
> > of
> > > pg_upgrade would be at risk for the same reason.
> >
> > Eh, disastrous? Don't we check the versions reported by each
> > postmaster before attempting to do anything? Because if we do, the
> > worst that would happen is that the user gets a version mismatch
> > error.
> > And if we don't ... well, we should.
>
> Yeah, we'd obviously have to decorate that with some checks and error
> reporting. But AFAICT we only use the old bindir for running
> pg_controldata, so what could go wrong(tm).

Uh, we use that bindir to run the right pg_ctl and psql and stuff.
Everything run should be the matching directory, except for pg_dumpall
which uses the new one.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-05-08 00:20:23 Re: pg_upgrade's bindir options could be optional
Previous Message Andrew Dunstan 2011-05-07 23:03:16 Re: Fix for pg_upgrade user flag