Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQ3mv-00085j-1V for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Feb 2015 00:55:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YQ3mu-0001UZ-5J for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Feb 2015 00:55:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YQ3mt-0001TB-Do for pgsql-bugs@postgresql.org; Tue, 24 Feb 2015 00:55:47 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQ3mq-0007Pq-Co for pgsql-bugs@postgresql.org; Tue, 24 Feb 2015 00:55:45 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D5A665F7AA; Mon, 23 Feb 2015 19:55:43 -0500 (EST) Date: Mon, 23 Feb 2015 19:55:43 -0500 From: Stephen Frost To: David Steele Cc: pgsql-bugs@postgresql.org Subject: Re: View restore error in 9.3-9.4 upgrade Message-ID: <20150224005543.GG29780@tamriel.snowman.net> References: <54EBA91C.1020907@pgmasters.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+sHJum3is6Tsg7/J" Content-Disposition: inline In-Reply-To: <54EBA91C.1020907@pgmasters.net> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-45-generic (x86_64) X-Uptime: 19:54:29 up 33 days, 43 min, 7 users, load average: 0.32, 0.15, 0.08 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --+sHJum3is6Tsg7/J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline David, * David Steele (david@pgmasters.net) 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. Which pg_dumpall / pg_dump did you use? Generally speaking, you want to be using the pg_dumpall and pg_dump from the version of PostgreSQL which you are upgrading *to*. In this case, you'd want to use the 9.4 pg_dumpall and pg_dump. I haven't had a chance to look more closely, but I suspect that would work based on your comment that a dump/reload while on 9.4 works. Thanks! Stephen --+sHJum3is6Tsg7/J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJU68wPAAoJEO1sijiDR2RV2EoQAL71RBPjUJi9MPZHAounkAp5 A13VT1PXtW6ooeCVHQorXWPIUPanEFgTt+Rb6oRLUyVZlSiWj49psNbbInLM0Ztx s4IRZnbNmDYde+t7ivwMlPS2+B7k/jM3l0AofDrxGQG3/oUoRnxarZdyzr6+bcaG j/+UhTzMmtiyZwTfVgCkfeTjUpCoicvk+WodBgSXuzXjd65rcQWTWmt+at4zs719 9U1y0rQn+khVvYQOyfqZVUeOqygOM/Jf36tKoSXGtrezGjYTJwPeqnrauwGmbgh3 NZqd1Qvxw1+xPM1R5km9i8oBmjdfjgY/AMyrcoaDsW+L3l7pGidTCsvWgy5w1R2H gj23TYUSyBT+lq5wADubiVTHBV42mDjJQoU2Kv1EXEAPlXph15TmJN2BCy81Heip BUTe1JHHnkLmWTclb1OTYFyAM1htX0qxJnbWWq8O+uMAxzKDSe21hm/okx6B44ZL D4Fgt26fCW5IxGVqUVnesqeHd/1N81ElOitOs4+9ytQa0Fk+wZmuvkiUnbH+PqEQ ne5/tgvR04J9CZK8Dv7+G1zvd/DnjQasHV6+QnHkQQiuIzosIm5F9X0euO+r/sA1 NnnfPjx/yAFvxEP+M2/NGIOyrWQftTYvw0UNjCmComTqvdJ1KMx7g9YATPfZ93ex CWhujR+D5/ZcPE3r7vO6 =zx+V -----END PGP SIGNATURE----- --+sHJum3is6Tsg7/J--