Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 440B0BDAF14 for ; Wed, 18 Jul 2012 19:39:51 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SrcuK-00089Q-6y for pgsql-bugs@postgresql.org; Wed, 18 Jul 2012 22:39:50 +0000 Received: by pbbrp8 with SMTP id rp8so3279851pbb.19 for ; Wed, 18 Jul 2012 15:39:34 -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=qJFt/+3y5UySqsrHRlgtbgnjAjmsPfvXH6AaqobCG+w=; b=Zu19tRScgHepS9NHc+k8gIpIqYRRH9bEW06UDTLTuR+VMzwHivFjGzYpL1AFV0syn1 gU908hkA6KE2sFH3CtY34BCqVFSf1ZJ4SMc960Ztsl9FZwKtdusXDq/JUpRoikIwkmDl dj6tNW866KSgAn24yXZG8sXjEO5ppgpk9btPuCupB8XKkHycDZaw3jlIhl/tMPeWbeI3 D0FkifVj4r9ufIEQAOBJVPyTyce5qiQstauoKCmJNyDHeE0dfaa2dfWqw0bwvDdlEHue RRomoWGgFzTOyWg1zhhhf4C1Rrn6fyEK6rgiY5rQyyMhWqyvijT9k2ipgc0eUtJ4IAUF WDpQ== Received: by 10.68.221.106 with SMTP id qd10mr11375610pbc.42.1342651174527; Wed, 18 Jul 2012 15:39:34 -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 pg3sm429665pbc.2.2012.07.18.15.39.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 15:39:33 -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: <15721.1342585913@sss.pgh.pa.us> Date: Wed, 18 Jul 2012 15:39:31 -0700 Cc: Bruce Momjian , pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <64AEA226-6CF1-4B5E-B78F-062BEB4CCD3B@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> <20120717205949.GA8146@momjian.us> <1857E88C-CD2D-4C44-B04B-82256B4E9959@gmail.com> <20120717233915.GC8146@momjian.us> <20120718041830.GB29910@momjian.us> <15721.1342585913@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.1278) X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201207/149 X-Sequence-Number: 33625 Tom, after patching pg_upgrade now runs successfully. I noticed that = this patch had been applied since yesterday to the REL9_2_STABLE so I = also tested with a git pull without the patch that appears to work also. = I think issue has been resolved for me, thanks so much! You guys rock! Mike Wilson mfwilson@gmail.com On Jul 17, 2012, at 9:31 PM, Tom Lane wrote: > Bruce Momjian writes: >> I am using git head for testing. Tom sees a few things odd in >> load_directory() that might be causing some problems on Solaris, and >> this is new code for 9.2 for Solaris, so that might explain it. I = think >> we need Tom to finish and then if you can grab our git source and = test >> that, it would be great! >=20 > The only thing I see that looks likely to represent a = platform-specific > issue is the entrysize calculation. Mike, just out of curiosity, = could > you see if the attached patch makes things better for you? >=20 > regards, tom lane >=20 > diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c > index = 1dd3722142c9e83c1ec228099c3a3fd302a2179b..c886a67df43792a1692eec6b3b902384= 13e9f844 100644 > *** a/contrib/pg_upgrade/file.c > --- b/contrib/pg_upgrade/file.c > *************** load_directory(const char *dirname, stru > *** 259,265 **** > return -1; > } >=20 > ! entrysize =3D sizeof(struct dirent) - = sizeof(direntry->d_name) + > strlen(direntry->d_name) + 1; >=20 > (*namelist)[name_num] =3D (struct dirent *) = malloc(entrysize); > --- 259,265 ---- > return -1; > } >=20 > ! entrysize =3D offsetof(struct dirent, d_name) + > strlen(direntry->d_name) + 1; >=20 > (*namelist)[name_num] =3D (struct dirent *) = malloc(entrysize);