|
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 $ --> |
2 | 2 |
|
3 | 3 | <chapter id="regress">
|
4 | 4 | <title>Regression Tests</title>
|
@@ -142,6 +142,46 @@ gmake installcheck
|
142 | 142 | You can also do this in a subdirectory of <filename>contrib</> to run
|
143 | 143 | the tests for just one module.
|
144 | 144 | </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> |
145 | 185 | </sect1>
|
146 | 186 |
|
147 | 187 | <sect1 id="regress-evaluation">
|
|
0 commit comments