pgsql: Return ssize_t in fd.c I/O functions.

2024-03-01 Thread Thomas Munro
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

pgsql: Simplify pg_enc2gettext_tbl[] with C99-designated initializer sy

2024-03-01 Thread Michael Paquier
Simplify pg_enc2gettext_tbl[] with C99-designated initializer syntax This commit switches pg_enc2gettext_tbl[] in encnames.c to use a C99-designated initializer syntax. pg_bind_textdomain_codeset() is simplified so as it is possible to do a direct lookup at the gettext() array with a value of