pgsql: Adjust new pg_read_file() test cases for more portability.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Adjust new pg_read_file() test cases for more portability.
Date: 2022-07-30 15:17:13
Message-ID: E1oHoDI-001wbk-Al@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Adjust new pg_read_file() test cases for more portability.

It's allowed for an installation to remove postgresql.auto.conf,
so don't rely on that being present. Instead probe whether we can
read postmaster.pid. (If you've removed that, you broke the data
directory's multiple-postmaster interlock, not to mention pg_ctl.)
Per gripe from Michael Paquier.

Discussion: https://postgr.es/m/YuSZTsoBMObyY+vT@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/misc_functions.out | 14 +++++++-------
src/test/regress/sql/misc_functions.sql | 10 +++++-----
2 files changed, 12 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-07-30 17:05:21 pgsql: Fix incorrect is-this-the-topmost-join tests in parallel plannin
Previous Message Robert Haas 2022-07-30 03:30:25 pgsql: Revise test case added in 43746996399541ecb5c7b188725a5f097c15ce