pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
press - pr: it fixes small typos and change the translation of some
2+ messages / 2 participants
[nested] [flat]

* press - pr: it fixes small typos and change the translation of some
@ 2009-06-19 06:57 User Eulerto <eulerto@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: eulerto@pgfoundry.org @ 2009-06-19 06:57 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------
it fixes small typos and change the translation of some words/expressions.

Modified Files:
--------------
    pr/releases/8.4/br:
        presskit84.html.br (r1.3 -> r1.4)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/press/pr/releases/8.4/br/presskit84.html.br?r1=1.3&r...)
        release.txt.br (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/press/pr/releases/8.4/br/release.txt.br?r1=1.2&r2=1....)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Return ssize_t in fd.c I/O functions.
@ 2024-03-01 23:15 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Thomas Munro @ 2024-03-01 23:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Return ssize_t in fd.c I/O functions.

In the past, FileRead() and FileWrite() used types based on the Unix
read() and write() functions from before C and POSIX standardization,
though not exactly (we had int for amount instead of unsigned).  In
commit 2d4f1ba6 we changed to the appropriate standard C types, just
like the modern POSIX functions they wrap, but again not exactly: the
return type stayed as int.  In theory, a ssize_t value could be returned
by the underlying call that is too large for an int.

That wasn't really a live bug, because we don't expect PostgreSQL code
to perform reads or writes of gigabytes, and OSes probably apply
internal caps smaller than that anyway.  This change is done on the
principle that the return might as well follow the standard interfaces
consistently.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/1672202.1703441340%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/653b55b57081dc6fb8c75d61870c5fdc8c8554cc

Modified Files
--------------
src/backend/storage/file/fd.c | 8 ++++----
src/include/storage/fd.h      | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-03-01 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19 06:57 press - pr: it fixes small typos and change the translation of some User Eulerto <eulerto@pgfoundry.org>
2024-03-01 23:15 pgsql: Return ssize_t in fd.c I/O functions. Thomas Munro <tmunro@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox