pgsql: Add 'make check-tests' behavior to the meson based builds

2025-11-21 Thread Andrew Dunstan
Add 'make check-tests' behavior to the meson based builds There was no easy way to run specific tests in the meson based builds. Author: Nazir Bilal Yavuz Reviewed-by: Ashutosh Bapat Reviewed-by: Jian He Discussion: postgr.es/m/CAExHW5tK-QqayUN0%2BN3MF5bjV6vLKDCkRuGwoDJwc7vGjwCygQ%40mail.gmai

pgsql: Fix typo in documentation about application time

2025-11-21 Thread Peter Eisentraut
Fix typo in documentation about application time Author: Paul A. Jungwirth Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/51364113d5a00e53f9447de1f7056c440e0892d5 Modified Files -- doc/src/sgml/ddl.sgml | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

pgsql: Remove useless casts to (void *)

2025-11-21 Thread Peter Eisentraut
Remove useless casts to (void *) Their presence causes (small) risks of hiding actual type mismatches or silently discarding qualifiers. Some have been missed in 7f798aca1d5 and some are new ones along the same lines. Author: Bertrand Drouvot Discussion: https://www.postgresql.org/message-id/f

pgsql: Use strtoi64() in pgbench, replacing its open-coded implementati

2025-11-21 Thread Heikki Linnakangas
Use strtoi64() in pgbench, replacing its open-coded implementation Makes the code a little simpler. The old implementation accepted trailing whitespace, but that was unnecessary. Firstly, its sibling function for parsing decimals, strtodouble(), does not accept trailing whitespace. Secondly, none

pgsql: Update timezone to C99

2025-11-21 Thread Peter Eisentraut
Update timezone to C99 This reverts changes done in PostgreSQL over the upstream code to avoid relying on C99 and . In passing, there were a few other minor and cosmetic changes that I left in to improve alignment with upstream, including some C11 feature use (_Noreturn). Reviewed-by: Tom Lane

pgsql: C11 alignas instead of unions

2025-11-21 Thread Peter Eisentraut
C11 alignas instead of unions This changes a few union members that only existed to ensure alignments and replaces them with the C11 alignas specifier. This change only uses fundamental alignments (meaning approximately alignments of basic types), which all C11 compilers must support. There are o