aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-01-18 14:08:09 -0500
committerNoah Misch <noah@leadboat.com>2015-01-18 14:08:09 -0500
commit4c34dcf97f70fa5c3d5fbf70caff12032a27a7dd (patch)
tree783e790d68592575a6e0794147e04ea92e13fe85 /src
parent525b84c576e119de7f2b0d00e3a99d559771aa7b (diff)
downloadpostgresql-4c34dcf97f70fa5c3d5fbf70caff12032a27a7dd.tar.gz
postgresql-4c34dcf97f70fa5c3d5fbf70caff12032a27a7dd.zip
Activate low-volume optional logging during regression test runs.
Elaborated from an idea by Andres Freund.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/pg_regress.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index b9a9f51d68f..caae3f05de6 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -2456,12 +2456,12 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
}
/*
- * Adjust the default postgresql.conf as needed for regression
- * testing. The user can specify a file to be appended; in any case we
- * set max_prepared_transactions to enable testing of prepared xacts.
- * (Note: to reduce the probability of unexpected shmmax failures,
- * don't set max_prepared_transactions any higher than actually needed
- * by the prepared_xacts regression test.)
+ * Adjust the default postgresql.conf for regression testing. The user
+ * can specify a file to be appended; in any case we expand logging
+ * and set max_prepared_transactions to enable testing of prepared
+ * xacts. (Note: to reduce the probability of unexpected shmmax
+ * failures, don't set max_prepared_transactions any higher than
+ * actually needed by the prepared_xacts regression test.)
*/
snprintf(buf, sizeof(buf), "%s/data/postgresql.conf", temp_install);
pg_conf = fopen(buf, "a");
@@ -2471,6 +2471,10 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
exit(2);
}
fputs("\n# Configuration added by pg_regress\n\n", pg_conf);
+ fputs("log_autovacuum_min_duration = 0\n", pg_conf);
+ fputs("log_checkpoints = on\n", pg_conf);
+ fputs("log_lock_waits = on\n", pg_conf);
+ fputs("log_temp_files = 128kB\n", pg_conf);
fputs("max_prepared_transactions = 2\n", pg_conf);
if (temp_config != NULL)