Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4c34dcf9
Commit
4c34dcf9
authored
Jan 18, 2015
by
Noah Misch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Activate low-volume optional logging during regression test runs.
Elaborated from an idea by Andres Freund.
parent
525b84c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+10
-6
No files found.
src/test/regress/pg_regress.c
View file @
4c34dcf9
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment