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

Commitabeb17c

Browse files
Docs for standbycheck regression tests.
1 parent98bbab4 commitabeb17c

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

‎doc/src/sgml/regress.sgml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.66 2010/04/03 07:22:55 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.67 2010/05/02 12:22:40 sriggs Exp $ -->
22

33
<chapter id="regress">
44
<title>Regression Tests</title>
@@ -142,6 +142,46 @@ gmake installcheck
142142
You can also do this in a subdirectory of <filename>contrib</> to run
143143
the tests for just one module.
144144
</para>
145+
146+
<para>
147+
The source distribution also contains regression tests of the static
148+
behaviour of Hot Standby. These tests require a running primary server
149+
and a running standby server that is accepting new WAL changes from the
150+
primary using either file-based log shipping or streaming replication.
151+
Those servers are not automatically created for you, nor is the setup
152+
documented here. Please check the various sections of the docs already
153+
devoted to the required commands and related issues.
154+
</para>
155+
156+
<para>
157+
First create a database called "regression" on the primary.
158+
<screen>
159+
psql -h primary -c "CREATE DATABASE regression"
160+
</screen>
161+
Next, run a preparatory script on the primary in the regression database:
162+
<filename>src/test/regress/sql/hs_primary_setup.sql</filename>, and
163+
allow for the changes to propagate to the standby, for example
164+
<screen>
165+
psql -h primary -f src/test/regress/sql/hs_primary_setup.sql regression
166+
</screen>
167+
Now confirm that the default connection for the tester is the standby
168+
server under test and then run standbycheck from the regression
169+
directory.
170+
<screen>
171+
cd src/test/regress
172+
gmake standbycheck
173+
</screen>
174+
</para>
175+
176+
<para>
177+
Some extreme behaviours can also be generated on the primary using the
178+
script: <filename>src/test/regress/sql/hs_primary_extremes.sql</filename>
179+
to allow the behaviour of the standby to be tested.
180+
</para>
181+
182+
<para>
183+
Additional automated testing may be available in later releases.
184+
</para>
145185
</sect1>
146186

147187
<sect1 id="regress-evaluation">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp