pgsql: In copy_file, use a palloc'd buffer instead of just a local char

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In copy_file, use a palloc'd buffer instead of just a local char
Date: 2005-09-02 18:55:32
Message-ID: 20050902185532.8F416D7E08@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
In copy_file, use a palloc'd buffer instead of just a local char array;
a local array isn't guaranteed to have any particular alignment, and
so it could slow down the data transfer.

Modified Files:
--------------
pgsql/src/port:
copydir.c (r1.12 -> r1.13)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c.diff?r1=1.12&r2=1.13)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-09-02 19:02:20 pgsql: Clean up a couple of ad-hoc computations of the maximum number of
Previous Message User Dpage 2005-09-02 16:09:05 pginstaller - pginst: Update all bundled packages, cleanup contrib