pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: View restore error in 9.3-9.4 upgrade
Date: Mon, 23 Feb 2015 18:02:23 -0700 (MST)
Message-ID: <1424739743940-5839131.post@n5.nabble.com> (raw)
In-Reply-To: <54EBA91C.1020907@pgmasters.net>
References: <54EBA91C.1020907@pgmasters.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

David Steele wrote
> I upgraded from 9.3 to 9.4 last week using pg_dumpall and psql to dump
> and import the database.  I got an error during the creation of one of
> the views and ended up having to patch the pl/pgsql manually to complete
> the migration.
> 
> I've attached the relevant view and the function/views it depends on
> (view-bug.sql).  To reproduce the issue:
> 
> On a 9.3 cluster:
> 
>> createdb test
>> psql -f view-bug.sql test
>> pg_dump test > test.dump

Is the version of pg_dump 9.3 here?  When upgrading to a new release you
should use the newer (in this case 9.4) version of pg_dump to perform the
migration dump.  

What are the exact releases of 9.3 and 9.4 upon which you are operating?

Does the dump restore into 9.3 correctly?


> psql:test.dump:151: ERROR:  column reference "query" is ambiguous
> LINE 13:     pg_stat_activity.query,

A quick visual doesn't spring anything obvious.  I haven't attempted to
reproduce via the supplied scripts.

David J.




--
View this message in context: http://postgresql.nabble.com/View-restore-error-in-9-3-9-4-upgrade-tp5839120p5839131.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
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 (9+ messages)  latest in thread

Message-ID: <1424739743940-5839131.post@n5.nabble.com>
Permalink:  ../1424739743940-5839131.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1424739743940-5839131.post@n5.nabble.com

 · 

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: david.g.johnston@gmail.com
  Subject: Re: View restore error in 9.3-9.4 upgrade
  In-Reply-To: <1424739743940-5839131.post@n5.nabble.com>
  References: <54EBA91C.1020907@pgmasters.net> <1424739743940-5839131.post@n5.nabble.com>

* 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