Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id CDB6255C5A5 for ; Mon, 16 Jul 2012 16:56:43 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SqrPO-0007f9-JW for pgsql-bugs@postgresql.org; Mon, 16 Jul 2012 19:56:43 +0000 Received: by pbbrp8 with SMTP id rp8so10521382pbb.19 for ; Mon, 16 Jul 2012 12:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=UWrP208+S3vW0sLBfLtgjhbZ3syFH8gaFq1mUIyv/Z4=; b=PxUm1GB4mSsheQ1eQKvZ0fgaaMIy7ArexquVfH5hC/4jrPbyI81Hpo00VRGZ9V4wRI PeCsBd4bT6QT1nP4FqnrVQkPiIsd3E5hoTc0VB71VCTj9N29QS0Ux+q7BEu+opUz+K+m CEpRI6Up7K3poKjsfOjkaUEI1y1tHtnnZWdhY6yCI7ILXFrc9UZbDhGOMg4aBTqAuxsN hQlQk3h34mn62fN5YRyb8NJCLk3P/L7F8hOBj8zly+jYFL8sJGrXlrhG8n3+KlmI2mOp m5Tq+J8H5qzuRz/roz0+illca5vDtaluUzgcypeI/xtA8KPt8ksQtwkbXnStJUPtn59T 8Z1Q== Received: by 10.68.224.70 with SMTP id ra6mr29593484pbc.11.1342468589638; Mon, 16 Jul 2012 12:56:29 -0700 (PDT) Received: from [10.10.10.208] (static-71-189-190-186.lsanca.fios.verizon.net. [71.189.190.186]) by mx.google.com with ESMTPS id pf8sm2805713pbc.44.2012.07.16.12.56.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 12:56:28 -0700 (PDT) Subject: Re: BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/alternative; boundary="Apple-Mail=_4CFE18EC-3557-47DE-9540-152644C43C88" From: Mike Wilson In-Reply-To: <23299.1342388728@sss.pgh.pa.us> Date: Mon, 16 Jul 2012 12:56:25 -0700 Cc: Bruce Momjian , pgsql-bugs@postgresql.org Message-Id: <8A0530E7-4D74-41BD-BD48-A30E9B31D172@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> <23299.1342388728@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.1278) X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201207/129 X-Sequence-Number: 33605 --Apple-Mail=_4CFE18EC-3557-47DE-9540-152644C43C88 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Just for my interest I also created a new PG 842 db (initdb) and put = some sample data it it and successfully did a pg_upgrade from 842 -> = 920b2. Whatever the issue is it seems to be related to my actual = database as a sample db conversion works. Again, 842-914 conversion = works for my db though so possibly it was some change that happened to = pg_upgrade since 914 was released that is having poor interaction with = my actual db cluster. Also, I wanted to make sure I wasn't using some git checkout of 920 I = downloaded the postgresql-9.2.beta2.tgz from the PostgreSQL site = dir-browser and re-compiled. Still have the problem unfortunately. Cheers. Mike Wilson mfwilson@gmail.com On Jul 15, 2012, at 2:45 PM, Tom Lane wrote: > 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. >=20 > Yeah, more than likely :-(. Could we see a stack trace from the > segfault? >=20 >> Of possible note in this DB is that the previous DBA renamed the >> "postgres" user. >=20 > 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. >=20 > regards, tom lane --Apple-Mail=_4CFE18EC-3557-47DE-9540-152644C43C88 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Just = for my interest I also created a new PG 842 db (initdb) and put some = sample data it it and successfully did a pg_upgrade from 842 -> = 920b2.  Whatever the issue is it seems to be related to my actual = database as a sample db conversion works.  Again, 842-914 = conversion works for my db though so possibly it was some change that = happened to pg_upgrade since 914 was released that is having poor = interaction with my actual db cluster.

Also, I wanted = to make sure I wasn't using some git checkout of 920 I downloaded = the postgresql-9.2.beta2.tgz from the PostgreSQL site dir-browser = and re-compiled.  Still have the problem = unfortunately.

Cheers.

Mike = Wilson



On Jul 15, 2012, at 2:45 PM, Tom Lane wrote:

Mike = Wilson <mfwilson@gmail.com> = 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

= --Apple-Mail=_4CFE18EC-3557-47DE-9540-152644C43C88--