pgsql: Refactor TAP test authentication/001_password.pl

2022-10-05 Thread Michael Paquier
Refactor TAP test authentication/001_password.pl The test is changed to test for connection strings rather than specific roles, and the reset logic of pg_hba.conf is extended so as the database and user name entries can be directly specified. This is aimed at being used as a base for more test sc

pgsql: Fix final compiler warning produced by -Wshadow=compatible-local

2022-10-05 Thread David Rowley
Fix final compiler warning produced by -Wshadow=compatible-local We're now able to compile the entire tree with -Wshadow=compatible-local without any compiler warnings. Author: David Rowley Discussion: https://postgr.es/m/CAApHDvqWGMdB_pATeUqE=jctnqnxobpoj00jfea2_sz20j_...@mail.gmail.com Branch

pgsql: Add optional parameter to PG_TRY() macros

2022-10-05 Thread David Rowley
Add optional parameter to PG_TRY() macros This optional parameter can be specified in cases where there are nested PG_TRY() statements within a function in order to stop the compiler from issuing warnings about shadowed local variables when compiling with -Wshadow. The optional parameter is used

pgsql: relnotes: fix author names

2022-10-05 Thread Bruce Momjian
relnotes: fix author names Reported-by: Elena Indrupskaya Discussion: https://postgr.es/m/[email protected] Author: Elena Indrupskaya Backpatch-through: 15 only Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/be5cf460817

pgsql: doc: clarify description for log_startup_progress_interval

2022-10-05 Thread Bruce Momjian
doc: clarify description for log_startup_progress_interval Reported-by: Elena Indrupskaya Discussion: https://postgr.es/m/[email protected] Author: Elena Indrupskaya Backpatch-through: 15 Branch -- REL_15_STABLE Details --- https://git.postgresql.or

pgsql: doc: clarify description for log_startup_progress_interval

2022-10-05 Thread Bruce Momjian
doc: clarify description for log_startup_progress_interval Reported-by: Elena Indrupskaya Discussion: https://postgr.es/m/[email protected] Author: Elena Indrupskaya Backpatch-through: 15 Branch -- master Details --- https://git.postgresql.org/pg/co

pgsql: tests: Rename conflicting role names

2022-10-05 Thread Andres Freund
tests: Rename conflicting role names These cause problems when running installcheck-world USE_MODULE_DB=1 with -j. Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg

pgsql: tests: Restrict pg_locks queries in advisory_locks.sql to curren

2022-10-05 Thread Andres Freund
tests: Restrict pg_locks queries in advisory_locks.sql to current database Otherwise testing an existing installation can fail, if there are other locks, e.g. from one of the isolation tests. Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/[email protected]

pgsql: meson: libpq: Revise static / shared library setup

2022-10-05 Thread Andres Freund
meson: libpq: Revise static / shared library setup Improvements: - we don't need -DFRONTEND for libpq anymore since 1d77afefbd1 - the .pc file contents for a static libpq were wrong (referencing {pgport, common}_shlib) - incidentally fixes meson not supporting link_whole on AIX yet - added expla

pgsql: meson: ecpg: Split definition of static and shared libraries

2022-10-05 Thread Andres Freund
meson: ecpg: Split definition of static and shared libraries Required for correct resource file generation, as the resource files should only be added to the shared library. This also fixes a bunch of issues in the .pc files. Previously I tried to avoid building sources twice, once for the stati

pgsql: meson: docs: Add xml{lint,proc} wrapper to collect dependencies

2022-10-05 Thread Andres Freund
meson: docs: Add xml{lint,proc} wrapper to collect dependencies meson/ninja do not support specifying dependencies via globs (as those make it significantly more expensive to check the current build state). Instead targets should emit dependency information when running that then can be cheaply re

pgsql: meson: Add windows resource files

2022-10-05 Thread Andres Freund
meson: Add windows resource files The generated resource files aren't exactly the same ones as the old buildsystems generate. Previously "InternalName" and "OriginalFileName" were mostly wrong / not set (despite being required), but that was hard to fix in at least the make build. Additionally, th

pgsql: Fix whitespace

2022-10-05 Thread Peter Eisentraut
Fix whitespace Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/db0e5bf2b2da17c7e1c0beec04011d53388458bc Modified Files -- contrib/amcheck/meson.build | 1 - 1 file changed, 1 deletion(-)

pgsql: Rename shadowed local variables

2022-10-05 Thread David Rowley
Rename shadowed local variables In a similar effort to f01592f91, here we mostly rename shadowed local variables to remove the warnings produced when compiling with -Wshadow=compatible-local. This fixes 63 warnings and leaves just 5. Author: Justin Pryzby, David Rowley Reviewed-by: Justin Pryzby