pgsql: Adjust new pg_read_file() test cases for more portability. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Adjust new pg_read_file() test cases for more portability.
Date
Msg-id E1oHoDI-001wbk-Al@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Revise test case added in 43746996399541ecb5c7b188725a5f097c15ce
Next
From: Tom Lane
Date:
Subject: pgsql: Fix incorrect is-this-the-topmost-join tests in parallel plannin