Adjust new pg_read_file() test cases for more portability.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/misc_functions.out | modified | +7 −7 |
| src/test/regress/sql/misc_functions.sql | modified | +5 −5 |
Discussion
- Inconvenience of pg_read_binary_file() 13 messages · 2022-06-07 → 2022-08-01