pgsql: In pg_upgrade, simplify function copy_file() by using pg_malloc(

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pg_upgrade, simplify function copy_file() by using pg_malloc(
Date: 2012-11-25 03:39:08
Message-ID: E1TcT3k-0002my-QE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

In pg_upgrade, simplify function copy_file() by using pg_malloc() and
centralizing error/shutdown code.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6b711cf37c228749b6a8cef50e16e3c587d18dd4

Modified Files
--------------
contrib/pg_upgrade/file.c | 54 ++++++++++----------------------------------
1 files changed, 13 insertions(+), 41 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-11-26 17:58:32 pgsql: Fix SELECT DISTINCT with index-optimized MIN/MAX on inheritance
Previous Message Bruce Momjian 2012-11-25 03:12:44 pgsql: In pg_upgrade, fix a few place that used maloc/free rather than