Re: pg_ugprade use of --check and --link - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_ugprade use of --check and --link
Date
Msg-id 20130607151442.GA19907@momjian.us
Whole thread Raw
In response to Re: pg_ugprade use of --check and --link  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Thu, Jun  6, 2013 at 10:24:30AM -0400, Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > In a private bug report, I have realized that if you are eventually
> > going to be using link mode with pg_upgrade, and you run --check mode,
> > you should use --link with --check to check that both clusters are on
> > the same file system.
> 
> Would it make sense to run the filesystem check anyway, and if the
> check fails say something like "this will fail in --link mode, although
> copy mode might work" ?

I thought about that, but the problem is that the return value of
--check should be success/fail.  We could do the check always, and issue
a warning, but you would still need to use --link with --check if you
wanted a valid return value --- that seemed just too awkward. 
Documenting the --link requirement seemed clearer.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: system catalog pg_rewrite column ev_attr document description problem
Next
From: Kevin Grittner
Date:
Subject: Re: Proposal for CSN based snapshots