Re: refactoring relation extension and BufferAlloc(), faster COPY - Mailing list pgsql-hackers

From John Naylor
Subject Re: refactoring relation extension and BufferAlloc(), faster COPY
Date
Msg-id CAFBsxsHKjGAMQ4dw5MgpQH7yv46addRpMMg1YR34TY+gyAapDw@mail.gmail.com
Whole thread Raw
In response to Re: refactoring relation extension and BufferAlloc(), faster COPY  (Andres Freund <andres@anarazel.de>)
Responses Re: refactoring relation extension and BufferAlloc(), faster COPY  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers

On Thu, Mar 30, 2023 at 10:02 AM Andres Freund <andres@anarazel.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

pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Time delayed LR (WAS Re: logical replication restrictions)
Next
From: Peter Smith
Date:
Subject: Re: Simplify some codes in pgoutput