pgsql: Doc: add pre-branch task to run src/tools/copyright.pl.

2025-05-18 Thread Tom Lane
Doc: add pre-branch task to run src/tools/copyright.pl. It's common for some files with last year's copyright date to sneak into the tree between early January (when we normally run copyright.pl) and feature freeze. Immediately before branching the new release is an ideal time to fix the straggle

pgsql: Fix incorrect year in some copyright notices

2025-05-18 Thread Michael Paquier
Fix incorrect year in some copyright notices A couple of new files have been added in the tree with a copyright year of 2024 while we were already in 2025. These should be marked with 2025, so let's fix them. Reported-by: Shaik Mohammad Mujeeb Discussion: https://postgr.es/m/CALa6HA4_Wu7-2PV0x

pgsql: ecpg: Add missing newline in meson.build

2025-05-18 Thread Michael Paquier
ecpg: Add missing newline in meson.build Noticed while performing a routine sanity check of the files in the tree. Issue introduced by 28f04984f0c2. Discussion: https://postgr.es/m/CALa6HA4_Wu7-2PV0xv-Q84cT8eG7rTx6bdjUV0Pc=mcawkn...@mail.gmail.com Branch -- master Details --- https://

pgsql: Fix tuple_fraction calculation in generate_orderedappend_paths()

2025-05-18 Thread Alexander Korotkov
Fix tuple_fraction calculation in generate_orderedappend_paths() 6b94e7a6da adjusted generate_orderedappend_paths() to consider fractional paths. However, it didn't manage to interpret the tuple_fraction value correctly. According to the header comment of grouping_planner(), the tuple_fraction >

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Make our usage of memset_s() conform strictly to the C11 standar

2025-05-18 Thread Tom Lane
Make our usage of memset_s() conform strictly to the C11 standard. Per the letter of the C11 standard, one must #define __STDC_WANT_LIB_EXT1__ as 1 before including in order to have access to memset_s(). It appears that many platforms are lenient about this, because we weren't doing it and yet t

pgsql: Fix function name reference in comment

2025-05-18 Thread Daniel Gustafsson
Fix function name reference in comment Ensure that we refer to the function being used, rather than the name of the resulting function in question. Author: Paul A Jungwirth Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/ca+renyvznihev5cekdja4j5xc6nt6mruw33bderbqmi_90_...@mail.g