Re: File API cleanup

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: File API cleanup
Date: 2022-12-23 08:33:58
Message-ID: c3f27ab1-1d4d-889d-d335-9147d5437f3b@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 01.12.22 09:25, Peter Eisentraut wrote:
> Here are a couple of patches that clean up the internal File API and
> related things a bit:

Here are two follow-up patches that clean up some stuff related to the
earlier patch set. I suspect these are all historically related.

0001-Remove-unnecessary-casts.patch

Some code carefully cast all data buffer arguments for data write
and read function calls to void *, even though the respective
arguments are already void *. Remove this unnecessary clutter.

0002-Add-const-to-BufFileWrite.patch

Make data buffer argument to BufFileWrite a const pointer and bubble
this up to various callers and related APIs. This makes the APIs
clearer and more consistent.

Attachment Content-Type Size
0001-Remove-unnecessary-casts.patch text/plain 8.0 KB
0002-Add-const-to-BufFileWrite.patch text/plain 6.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2022-12-23 08:37:55 Re: ARRNELEMS Out-of-bounds possible errors
Previous Message shiy.fnst@fujitsu.com 2022-12-23 08:32:45 RE: Force streaming every change in logical decoding