Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C021A55C5A5 for ; Mon, 16 Jul 2012 14:58:31 -0300 (ADT) Received: from mail-gh0-f174.google.com ([209.85.160.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SqpYz-0003TR-33 for pgsql-bugs@postgresql.org; Mon, 16 Jul 2012 17:58:30 +0000 Received: by ghrr11 with SMTP id r11so5282269ghr.19 for ; Mon, 16 Jul 2012 10:58:15 -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 :content-transfer-encoding:message-id:references:to:x-mailer; bh=Yl2q/cdRvGbORMKwPcrDyNSy0TqMh6jVlVYMwHmk42s=; b=zSaWyYV9G7zSFcqj/284UmzdUSBMfj7ZLvTgdC1qrTVF1m4oiFmW/U2d8XEryskxLA 6gGU02KGnQRjJh/UduLbXtcobfdQC3+vtzhktXY3uy5m3S9ZvVxTBlQ1hotK6xvGBwcW CuK9Jgx8r5s6sFY1YKoxNbtveI8chsakm3bhNxNMdKBq08LCS3OykB0Pk/4rKs6RSraG 7/GDq3VjBSwhDRAvtoJys5/sJQyjMxBs60b5FlotDLat3Vx1mqH3bE47b5kNXXQB8zEU RbyVf85+LW6+nOVlrsaJThymelvF0JVKvjVpSYDBcjwiuxS5F54bss5CE64bDTayGZf0 7qjg== Received: by 10.66.89.170 with SMTP id bp10mr24533391pab.12.1342461495067; Mon, 16 Jul 2012 10:58:15 -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 pe8sm12293433pbc.76.2012.07.16.10.58.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 10:58:13 -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: text/plain; charset=us-ascii From: Mike Wilson In-Reply-To: <23299.1342388728@sss.pgh.pa.us> Date: Mon, 16 Jul 2012 10:58:11 -0700 Cc: Bruce Momjian , pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <4CF24053-1540-4843-AC50-45F37B9FC536@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.7 (--) X-Archive-Number: 201207/127 X-Sequence-Number: 33603 core stack: root@db4 / $ pstack ~postgres/core core '/opt/postgres/core' of 19868: pg_upgrade --verbose --link = --old-datadir=3D/opt/postgres/db/root/old -- fffffd7ffeda1148 memcpy () + 6b8 000000000040b8b6 transfer_single_new_db () + fa 000000000040b6ea transfer_all_new_dbs () + 116 000000000040ae62 main () + 106 000000000040580c ???????? () As to the ownership, the bash script I am testing 9.1.4 and 9.2.0 with = recursively chowns the directory that owns the old and the new PGDATA = directory before running pg_upgrade. =20 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