Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0a0k-0004yA-UP for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jan 2013 15:55:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0a0k-0001pY-Ab for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Jan 2013 15:55:42 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0KwV-0001he-96 for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 23:50:19 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0KwS-0000ow-1V for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 23:50:18 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0KwQ-0006O4-UC for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 23:50:15 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U0KwQ-0005ME-MQ for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 23:50:14 +0000 Date: Tue, 29 Jan 2013 23:50:14 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7838: pg_dump major bug To: pgsql-bugs@postgresql.org From: jan.mate@inf-it.com X-Pg-Spam-Score: -2.4 (--) 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 The following bug has been logged on the website: Bug reference: 7838 Logged by: Jan Mate Email address: jan.mate@inf-it.com PostgreSQL version: 9.2.2 Operating system: Debian GNU/Linux Description:=20=20=20=20=20=20=20=20 Today I tried to upgrade from 9.1.7 to 9.2.2 by using: pg_upgradecluster 9.1 main The upgrade process failed on one of my VIEWS with syntax error (after I removed that VIEW, the upgrade process worked well - also there was no problem with re-creation of the VIEW after the upgrade). I created a very simple example to reproduce the problem (looks like it is a pg_dump problem). Here are the links to files used in my example: - my original SQL queries http://www.inf-it.com/fixes/postgres-bugreport/test.sql - result from the pg_dump http://www.inf-it.com/fixes/postgres-bugreport/test_dump.sql Steps to reproduce the problem: $ createdb test $ psql test < test.sql $ psql test -c 'SELECT * FROM export_data;' number | org |=20=20=20=20= =20=20=20=20=20=20=20=20=20 name =20=20 ------------+----------------------------------------------+---------------= ------------------- 5555551212 | Starfleet or Springfield Nuclear Power Plant | Simpson Homer or Picard Jean-Luc (1 row) $ pg_dump test > test_dump.sql $ dropdb test $ createdb test $ psql test < test_dump.sql SET SET SET SET SET CREATE EXTENSION COMMENT SET SET SET CREATE TABLE ALTER TABLE ERROR: syntax error at or near "[" LINE 2: ...i'::text) regexp_matches(regexp_matches) LIMIT 1))[1], '[\\]... ^ ERROR: relation "public.export_data" does not exist REVOKE REVOKE GRANT GRANT --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs