Re: Incorrect Assert in BufFileSize()? - Mailing list pgsql-hackers

From David Rowley
Subject Re: Incorrect Assert in BufFileSize()?
Date
Msg-id CAApHDvod-92Y2Yb+ktz3fx=zH1B2fTO7zy-ic60dMDbUQoDxnw@mail.gmail.com
Whole thread Raw
In response to Re: Incorrect Assert in BufFileSize()?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, 4 Jul 2024 at 04:19, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> - * Return the current fileset based BufFile size.
> + * Returns the size if the given BufFile in bytes.
>
> "Returns the size of", no doubt?

Yes, thanks.

> A shade less nit-pickily, I wonder if "size" is sufficient.
> It's not really obvious that this means the amount of data
> in the file, rather than say sizeof(BufFile).  How about
>
> + * Returns the amount of data in the given BufFile, in bytes.

I've used that. Thank you.

> LGTM other than that point.

Pushed.

David



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Built-in CTYPE provider
Next
From: Heikki Linnakangas
Date:
Subject: Cleanup: PGProc->links doesn't need to be the first field anymore