Re: Extended test coverage and docs for SSL passphrase commands
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-11-21T22:38:02Z
Lists: pgsql-hackers
Attachments
- v2-0001-Add-GUC-to-show-EXEC_BACKEND-state.patch (application/octet-stream) patch v2-0001
- v2-0002-doc-Clarify-passphrase-command-reloading-on-Windo.patch (application/octet-stream) patch v2-0002
- v2-0003-ssl-Add-connection-and-reload-tests-for-key-passp.patch (application/octet-stream) patch v2-0003
> On 13 Nov 2025, at 00:12, Daniel Gustafsson <daniel@yesql.se> wrote: > >> On 12 Nov 2025, at 18:47, Álvaro Herrera <alvherre@kurilemu.de> wrote: >> >> On 2025-Nov-12, Daniel Gustafsson wrote: >> >>> As far as I know the only way to programmatically learn that from the Perl >>> testcode would be to check for the presence of the CONFIG_EXEC_PARAMS file in >>> $self->data_dir, which should be easy enough to do. Do you know of a better >>> way? >> >> We have check_pg_config(), which reads pg_config.h. For EXEC_BACKEND >> you need pg_config_manual.h, > > Right, but they can't be treated the same since EXEC_BACKEND will always be > matched by such a grep and the presence of WIN32 and !__CYGWIN__ mst be tested > for. The attached v2 adds a GUC debug_exec_backend which can be used to get the state of the running cluster, much like how debug_assertions will tell whether or not assertions were compiled in or not. (Per an idea off-list conversation about this.) This will be operating system independent and reusable in other tests as well. The rest of the patches are the same, just adapted to use this GUC in the SSL test. -- Daniel Gustafsson
Commits
-
doc: Clarify passphrase command reloading on Windows
- cbb69a65a7d2 17.8 landed
- eb7743e3e4f5 15.16 landed
- 9a26ff8c0e99 14.21 landed
- 54ba4a66fdc4 16.12 landed
- 2f9ec456aece 18.2 landed
- 0f4f45772c5a 19 (unreleased) landed
-
ssl: Add connection and reload tests for key passphrases
- 348020caa7be 19 (unreleased) landed
-
Add GUC to show EXEC_BACKEND state
- b3fe098d330f 19 (unreleased) landed