pgsql: Use safe_psql in SSL test setup to avoid silent failure

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use safe_psql in SSL test setup to avoid silent failure
Date: 2026-10-06 11:52:22
Message-ID: E1xE3iY-00000000Y0A-2v5G@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use safe_psql in SSL test setup to avoid silent failure

When setting up the cluster for SSL tests, use safe_psql instead of plain
psql calls to ensure the processing exits on error. There is no evidence
of this happening in the buildfarm, it's merely a precaution.

Reported-by: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
Reviewed-by: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Reviewed-by: Rui Zhao <zhaorui126(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAOYmi+mAtEn4wN3xx=r4TaY5AHy9_q9XncM8YQLhofE3op0SvA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e9aea0189d0f75e5ccd52ccb06e63cc87597dd64

Modified Files
--------------
src/test/ssl/t/SSL/Server.pm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-10-06 11:52:32 pgsql: Clear SSL_hosts when destroying TLS
Previous Message Etsuro Fujita 2026-10-06 09:35:20 pgsql: postgres_fdw: Fix typo in server version check in AcquireSampleR