9.0 beta2 pg_upgrade: malloc 0 bytes patch

Started by Steve Singeralmost 16 years ago2 messageshackers
Jump to latest
#1Steve Singer
steve@ssinger.info

Running pg_upgrade against an unmodified (the output of initdb) cluster
on AIX is giving me "pg_alloc: Out of memory" errors.

On some non-linux platforms (including AIX) malloc(0) returns 0.

with the attached patch to pg_upgrade I am now able to get pg_upgrade to
convert an 8.3 database consisting of a single table to 9.0 on an AIX
server.

--
Steve Singer
Afilias Canada
Data Services Developer
416-673-1142

Attachments:

tablespace.c.difftext/x-patch; name=tablespace.c.diffDownload+4-2
#2Bruce Momjian
bruce@momjian.us
In reply to: Steve Singer (#1)
Re: 9.0 beta2 pg_upgrade: malloc 0 bytes patch

Steve Singer wrote:

Running pg_upgrade against an unmodified (the output of initdb) cluster
on AIX is giving me "pg_alloc: Out of memory" errors.

On some non-linux platforms (including AIX) malloc(0) returns 0.

with the attached patch to pg_upgrade I am now able to get pg_upgrade to
convert an 8.3 database consisting of a single table to 9.0 on an AIX
server.

Great, thanks for your testing. I have applied a modified version of
the patch, attached.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ None of us is going to be here forever. +

Attachments:

/rtmp/difftext/x-diffDownload+9-10