Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YrAcg-0007Xm-W9 for pgsql-bugs@arkaria.postgresql.org; Sat, 09 May 2015 19:41:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YrAcf-0008TO-No for pgsql-bugs@arkaria.postgresql.org; Sat, 09 May 2015 19:41:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YrAce-0008TH-Nj for pgsql-bugs@postgresql.org; Sat, 09 May 2015 19:41:16 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YrAcY-0005zZ-6F for pgsql-bugs@postgresql.org; Sat, 09 May 2015 19:41:15 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YrAcW-0002xn-4x; Sat, 09 May 2015 15:41:08 -0400 Date: Sat, 9 May 2015 15:41:08 -0400 From: Bruce Momjian To: Corey Huinker Cc: Peter Eisentraut , Michael Paquier , pgsql-bugs@postgresql.org Subject: Re: BUG #13179: pg_upgrade failure. Message-ID: <20150509194108.GH30684@momjian.us> References: <20150427211555.2546.8955@wrigleys.postgresql.org> <554A5B49.5000107@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 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