Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 18BDB1E3525D for ; Thu, 12 Jul 2012 19:16:33 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SpRgW-0004p0-4m for pgsql-bugs@postgresql.org; Thu, 12 Jul 2012 22:16:32 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SpRgJ-00030v-IS for pgsql-bugs@postgresql.org; Thu, 12 Jul 2012 22:16:19 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SpRgI-0007HO-UN for pgsql-bugs@postgresql.org; Thu, 12 Jul 2012 22:16:18 +0000 Date: Thu, 12 Jul 2012 22:16:18 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2) To: pgsql-bugs@postgresql.org From: mfwilson@gmail.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/88 X-Sequence-Number: 33564 The following bug has been logged on the website: Bug reference: 6733 Logged by: Mike Wilson Email address: mfwilson@gmail.com PostgreSQL version: 9.1.4 Operating system: Solaris 10 Description: = Filing this under PG914 since there isn't an option for PG9.2beta2. = Possibly this should be filed elsewhere? If so apologies in advance. We are starting to prepare for the PG9.2 release so I have been performing some test pg_upgrades on our existing PG8.4.2 cluster. We have a sizable database and limited space so we have been testing upgrading our cluster using --link mode of pg_upgrade. After performing an upgrade though the new PG92 database has only empty tables. Running this: export NEWPG=3D/usr/postgres/postgresql-9.2.0_slony-2.1.1 export OLDPG=3D/usr/postgres/pg842_slony210 LD_LIBRARY_PATH=3D${NEWPG}/lib PATH=3D${NEWPG}/bin:${PATH} /usr/bin/time ${NEWPG}/bin/pg_upgrade --verbose --link \ --old-datadir=3D/opt/postgres/db/root/old --new-datadir=3D/opt/postgres/db/root/new --old-bindir=3D${OLDPG}/bin/64/ \ --new-bindir=3D${NEWPG}/bin/ --old-port=3D5432 --new-port=3D5920 --user=3Dp= ostgres This runs without errors and I am able to start the new upgraded PG92beta2 cluster. The schemas appear to be correct as well as the table definitions and other schema objects. The tables themselves though are all empty. Not sure what is going on