9.0 beta2 pg_upgrade: malloc 0 bytes patch

From: Steve Singer <ssinger(at)ca(dot)afilias(dot)info>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: 9.0 beta2 pg_upgrade: malloc 0 bytes patch
Date: 2010-06-16 15:20:22
Message-ID: 4C18EBB6.6020700@ca.afilias.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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

Attachment Content-Type Size
tablespace.c.diff text/x-patch 594 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-06-16 15:50:58 Re: New PGXN Extension site
Previous Message Tom Lane 2010-06-16 15:00:32 Re: GetOldestWALSendPointer() in header