Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4483b2c

Browse files
committed
Remove standby_schedule and associated test files.
Since this test schedule is not run by default, it's next door to unused. Moreover, its test coverage is very thin, and what there is is just about entirely superseded by the src/test/recovery tests. Let's drop it instead of carrying obsolete tests. Discussion: https://postgr.es/m/3911012.1641246643@sss.pgh.pa.us
1 parent 46cf109 commit 4483b2c

13 files changed

+0
-847
lines changed

doc/src/sgml/regress.sgml

-46
Original file line numberDiff line numberDiff line change
@@ -391,52 +391,6 @@ make check EXTRA_TESTS=numeric_big
391391
</screen>
392392
</para>
393393
</sect2>
394-
395-
<sect2>
396-
<title>Testing Hot Standby</title>
397-
398-
<para>
399-
The source distribution also contains regression tests for the static
400-
behavior of Hot Standby. These tests require a running primary server
401-
and a running standby server that is accepting new WAL changes from the
402-
primary (using either file-based log shipping or streaming replication).
403-
Those servers are not automatically created for you, nor is replication
404-
setup documented here. Please check the various sections of the
405-
documentation devoted to the required commands and related issues.
406-
</para>
407-
408-
<para>
409-
To run the Hot Standby tests, first create a database
410-
called <literal>regression</literal> on the primary:
411-
<screen>
412-
psql -h primary -c "CREATE DATABASE regression"
413-
</screen>
414-
Next, run the preparatory script
415-
<filename>src/test/regress/sql/hs_primary_setup.sql</filename>
416-
on the primary in the regression database, for example:
417-
<screen>
418-
psql -h primary -f src/test/regress/sql/hs_primary_setup.sql regression
419-
</screen>
420-
Allow these changes to propagate to the standby.
421-
</para>
422-
423-
<para>
424-
Now arrange for the default database connection to be to the standby
425-
server under test (for example, by setting the <envar>PGHOST</envar> and
426-
<envar>PGPORT</envar> environment variables).
427-
Finally, run <literal>make standbycheck</literal> in the regression directory:
428-
<screen>
429-
cd src/test/regress
430-
make standbycheck
431-
</screen>
432-
</para>
433-
434-
<para>
435-
Some extreme behaviors can also be generated on the primary using the
436-
script <filename>src/test/regress/sql/hs_primary_extremes.sql</filename>
437-
to allow the behavior of the standby to be tested.
438-
</para>
439-
</sect2>
440394
</sect1>
441395

442396
<sect1 id="regress-evaluation">

src/test/regress/GNUmakefile

-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ installcheck-parallel: all
130130
installcheck-tests: all
131131
$(pg_regress_installcheck) $(REGRESS_OPTS) $(TESTS) $(EXTRA_TESTS)
132132

133-
standbycheck: all
134-
$(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/standby_schedule --use-existing
135-
136133
# old interfaces follow...
137134

138135
runcheck: check

src/test/regress/expected/hs_standby_allowed.out

-218
This file was deleted.

src/test/regress/expected/hs_standby_check.out

-20
This file was deleted.

0 commit comments

Comments
 (0)