Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11c88e5

Browse files
committed
Explain max_prepared_transactions requirement in isolation tests' README.
Now that we have a test that requires nondefault settings to pass, it seemslike we'd better mention that detail in the directions about how to run thetests.Also do some very minor copy-editing.
1 parentaf35737 commit11c88e5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎src/test/isolation/README

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,27 @@ Isolation tests
55

66
This directory contains a set of tests for the serializable isolation level.
77
Testing isolation requires running multiple overlapping transactions,
8-
which requires multiple concurrent connections, and can't therefore be
8+
which requires multiple concurrent connections, andthereforecan't be
99
tested using the normal pg_regress program.
1010

11+
To run the tests, you need to have a server running at the default port
12+
expected by libpq. (You can set PGPORT and so forth in your environment
13+
to control this.) Then run
14+
gmake installcheck
15+
Note that the prepared-transactions test will not pass unless you have
16+
the server's max_prepared_transactions parameter set to at least 3.
17+
1118
To represent a test with overlapping transactions, we use a test specification
12-
file with a custom syntax, described in the next section.
19+
file with a custom syntax,which isdescribed in the next section.
1320

14-
isolationtester is program that uses libpq to open multiple connections,
21+
isolationtester isaprogram that uses libpq to open multiple connections,
1522
and executes a test specified by a spec file. A libpq connection string
1623
specifies the server and database to connect to; defaults derived from
1724
environment variables are used otherwise.
1825

1926
pg_isolation_regress is a tool similar to pg_regress, but instead of using
2027
psql to execute a test, it uses isolationtester.
2128

22-
To run the tests, you need to have a server up and running. Run
23-
gmake installcheck
2429

2530
Test specification
2631
==================

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp