Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C5F9E37EB72 for ; Sun, 15 Jul 2012 18:45:45 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SqWdK-0008BM-5E for pgsql-bugs@postgresql.org; Sun, 15 Jul 2012 21:45:44 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q6FLjSKA023300; Sun, 15 Jul 2012 17:45:28 -0400 (EDT) From: Tom Lane To: Mike Wilson cc: Bruce Momjian , pgsql-bugs@postgresql.org Subject: Re: BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2) In-reply-to: <8D0918C1-39A0-429A-96DB-997BE362141A@gmail.com> References: <13290.1342133046@sss.pgh.pa.us> <20120712224929.GB25074@momjian.us> <517A874F-B310-4340-803D-EC8625C8B497@gmail.com> <20120713015241.GA15443@momjian.us> <8D0918C1-39A0-429A-96DB-997BE362141A@gmail.com> Comments: In-reply-to Mike Wilson message dated "Sun, 15 Jul 2012 14:15:35 -0700" Date: Sun, 15 Jul 2012 17:45:28 -0400 Message-ID: <23299.1342388728@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/115 X-Sequence-Number: 33591 Mike Wilson writes: > I've had some time to examine this closer over the weekend. It > appears that pg_upgrade for 9.2b2 segfaults which more than likely has > something to do with the resulting converted database appearing to > have no rows. Yeah, more than likely :-(. Could we see a stack trace from the segfault? > Of possible note in this DB is that the previous DBA renamed the > "postgres" user. Hmm. There is a known bug in beta2 that's triggered by old and new clusters not having the same name for the bootstrap superuser; although I don't recall that the symptoms included a segfault. In any case, I'd suggest making sure the new cluster is initdb'd under the same account that currently owns the old cluster. regards, tom lane