postgresql_16:4.18.4.1 Environment Variables
PostgreSQL 16 > Server Administration > Regression Tests > TAP Tests > Environment Variables
Data directories are named according to the test filename, and will be retained if a test fails. If the environment variable PG_TEST_NOCLEAN is set, data directories will be retained regardless of test status. For example, retaining the data directory regardless of test results when running the pg_dump tests: PG_TEST_NOCLEAN=1 make -C src/bin/pg_dump check This environment variable also prevents the test's temporary directories from being removed.
Many operations in the test suites use a 180-second timeout, which on slow hosts may lead to load-induced timeouts. Setting the environment variable PG_TEST_TIMEOUT_DEFAULT to a higher number will change the default to avoid this.