Re: refactoring relation extension and BufferAlloc(), faster COPY
| От | Andres Freund |
|---|---|
| Тема | Re: refactoring relation extension and BufferAlloc(), faster COPY |
| Дата | |
| Msg-id | 20230405003203.xd333lzfb2fodoqr@awork3.anarazel.de обсуждение исходный текст |
| Ответ на | Re: refactoring relation extension and BufferAlloc(), faster COPY (John Naylor <john.naylor@enterprisedb.com>) |
| Ответы |
Re: refactoring relation extension and BufferAlloc(), faster COPY
|
| Список | pgsql-hackers |
Hi,
On 2023-03-30 12:28:57 +0700, John Naylor wrote:
> 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().
Fair point. I would however like to see a different error message for the two
ways of extending, at least initially. What about referencing FileFallocate()?
Greetings,
Andres Freund
В списке pgsql-hackers по дате отправления: