| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Update types in File API |
| Date: | 2022-12-08 08:06:13 |
| Message-ID: | E1p3Bv2-002U6Z-RE@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Update types in File API
Make the argument types of the File API match stdio better:
- Change the data buffer to void *, from char *.
- Change FileWrite() data buffer to const on top of that.
- Change amounts to size_t, from int.
In passing, change the FilePrefetch() amount argument from int to
off_t, to match the underlying posix_fadvise().
Discussion: https://www.postgresql.org/message-id/flat/11dda853-bb5b-59ba-a746-e168b1ce4bdb%40enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2d4f1ba6cfc2f0a977f1c30bda9848041343e248
Modified Files
--------------
src/backend/storage/file/fd.c | 8 ++++----
src/include/storage/fd.h | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dean Rasheed | 2022-12-09 10:05:27 | pgsql: Update MERGE docs to mention that ONLY is supported. |
| Previous Message | Etsuro Fujita | 2022-12-08 07:26:48 | pgsql: Remove new structure member from ResultRelInfo. |