Augment every test postgresql.conf

Noah Misch <noah@leadboat.com>

From: Noah Misch <noah@leadboat.com>
To: pgsql-hackers@postgresql.org
Date: 2018-12-29T02:19:50Z
Lists: pgsql-hackers
"env EXTRA_REGRESS_OPTS=--temp-config=SOMEFILE make check" appends the
contents of SOMEFILE to the test cluster's postgresql.conf.  I want a similar
feature for TAP suites and other non-pg_regress suites.  (My immediate use
case is to raise authentication_timeout and wal_sender_timeout on my buildfarm
animals, which sometimes fail at the defaults.)  I'm thinking to do this by
recognizing the PG_TEST_TEMP_CONFIG environment variable as a
whitespace-separated list of file names for appending to postgresql.conf.


Commits

  1. Fail pgwin32_message_to_UTF16() for SQL_ASCII messages.

  2. Honor TEMP_CONFIG in TAP suites.

  3. Respect TEMP_CONFIG when pg_regress_check and friends are called