Re: refactoring relation extension and BufferAlloc(), faster COPY

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Melanie Plageman <melanieplageman(at)gmail(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, vignesh C <vignesh21(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Yura Sokolov <y(dot)sokolov(at)postgrespro(dot)ru>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: refactoring relation extension and BufferAlloc(), faster COPY
Date: 2023-03-30 05:28:57
Message-ID: CAFBsxsHKjGAMQ4dw5MgpQH7yv46addRpMMg1YR34TY+gyAapDw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 30, 2023 at 10:02 AM Andres Freund <andres(at)anarazel(dot)de> wrote:
> Attached is v6. Changes:

0006:

+ ereport(ERROR,
+ errcode_for_file_access(),
+ errmsg("could not extend file \"%s\" with posix_fallocate():
%m",
+ FilePathName(v->mdfd_vfd)),
+ errhint("Check free disk space."));

Portability nit: mdzeroextend() doesn't know whether posix_fallocate() was
used in FileFallocate().

--
John Naylor
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2023-03-30 05:41:33 Re: Simplify some codes in pgoutput
Previous Message Hayato Kuroda (Fujitsu) 2023-03-30 05:28:13 RE: Time delayed LR (WAS Re: logical replication restrictions)