pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13179: pg_upgrade failure.
Date: Sat, 9 May 2015 15:41:08 -0400
Message-ID: <20150509194108.GH30684@momjian.us> (raw)
In-Reply-To: <CADkLM=d5KCsSKVEPT9kym1+BkBxGediZofG812oGpMw88-Psgw@mail.gmail.com>
References: <20150427211555.2546.8955@wrigleys.postgresql.org>
	<CAB7nPqTyOC1snkjxEvGBJQAKMyKbMck+Riw7KDu1nqh91fbEqQ@mail.gmail.com>
	<CADkLM=cEhoQ+Z3AcDzA8b1+qSZvfJjnEZUoCa-RXZ1nN08Cyqg@mail.gmail.com>
	<554A5B49.5000107@gmx.net>
	<CADkLM=d5KCsSKVEPT9kym1+BkBxGediZofG812oGpMw88-Psgw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Wed, May  6, 2015 at 02:58:01PM -0400, Corey Huinker wrote:
> Good to know about set search_path from current!
> 
> However, this shows an issue: a database which appears functional to the
> customer will fail to upgrade, and the only error message in the log file
> complains of an object that does not exist, despite the same log file showing
> that it does. Customers, already frustrated, might find that error confusing,
> and might find the eventual explanation unsatisfying. After all, the database
> worked for them, and they never do the thing that will make their code break.
> 
> The desired behavior would be an upgraded database that continues to have the
> problem of a function that will mal-function when a user changes their search
> path.
> 
> Failing that, an improved error message would help.
> 
> Alternately, a warning message at function creation time when
> ambiguously-pathed objects are referenced.

FYI, pg_upgrade is blindly calling pg_dump/pg_restore and erroring out
if there is any failure, so any fix would have to be done at that level.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
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 (6+ messages)

Message-ID: <20150509194108.GH30684@momjian.us>
Permalink:  ../20150509194108.GH30684@momjian.us/
Also on:    postgresql.org/message-id/20150509194108.GH30684@momjian.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: bruce@momjian.us, corey.huinker@gmail.com, peter_e@gmx.net, michael.paquier@gmail.com
  Subject: Re: BUG #13179: pg_upgrade failure.
  In-Reply-To: <20150509194108.GH30684@momjian.us>
  References: <20150427211555.2546.8955@wrigleys.postgresql.org> <CAB7nPqTyOC1snkjxEvGBJQAKMyKbMck+Riw7KDu1nqh91fbEqQ@mail.gmail.com> <CADkLM=cEhoQ+Z3AcDzA8b1+qSZvfJjnEZUoCa-RXZ1nN08Cyqg@mail.gmail.com> <554A5B49.5000107@gmx.net> <CADkLM=d5KCsSKVEPT9kym1+BkBxGediZofG812oGpMw88-Psgw@mail.gmail.com> <20150509194108.GH30684@momjian.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