From: Mike Wilson <mfwilson@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2)
Date: Wed, 18 Jul 2012 15:39:31 -0700
Message-ID: <64AEA226-6CF1-4B5E-B78F-062BEB4CCD3B@gmail.com> (raw)
In-Reply-To: <15721.1342585913@sss.pgh.pa.us>
References: <E1SpRgI-0007HO-UN@wrigleys.postgresql.org>
<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>
<A36767EF-DE6B-45A4-B187-F99C46FF5551@gmail.com>
<20120718041830.GB29910@momjian.us>
<15721.1342585913@sss.pgh.pa.us>
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 <bruce@momjian.us> 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!
>
> 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?
>
> regards, tom lane
>
> diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c
> index 1dd3722142c9e83c1ec228099c3a3fd302a2179b..c886a67df43792a1692eec6b3b90238413e9f844 100644
> *** a/contrib/pg_upgrade/file.c
> --- b/contrib/pg_upgrade/file.c
> *************** load_directory(const char *dirname, stru
> *** 259,265 ****
> return -1;
> }
>
> ! entrysize = sizeof(struct dirent) - sizeof(direntry->d_name) +
> strlen(direntry->d_name) + 1;
>
> (*namelist)[name_num] = (struct dirent *) malloc(entrysize);
> --- 259,265 ----
> return -1;
> }
>
> ! entrysize = offsetof(struct dirent, d_name) +
> strlen(direntry->d_name) + 1;
>
> (*namelist)[name_num] = (struct dirent *) malloc(entrysize);
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: mfwilson@gmail.com, tgl@sss.pgh.pa.us, bruce@momjian.us
Subject: Re: BUG #6733: All Tables Empty After pg_upgrade (PG 9.2.0 beta 2)
In-Reply-To: <64AEA226-6CF1-4B5E-B78F-062BEB4CCD3B@gmail.com>
References: <E1SpRgI-0007HO-UN@wrigleys.postgresql.org> <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> <A36767EF-DE6B-45A4-B187-F99C46FF5551@gmail.com> <20120718041830.GB29910@momjian.us> <15721.1342585913@sss.pgh.pa.us> <64AEA226-6CF1-4B5E-B78F-062BEB4CCD3B@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox