1--
2-- Hot Standby tests
3--
4-- hs_standby_check.sql
5--
6
7--
8-- If the query below returns false then all other tests will fail after it.
9--
10select case pg_is_in_recovery() when false then
11	'These tests are intended only for execution on a standby server that is reading ' ||
12	'WAL from a server upon which the regression database is already created and into ' ||
13	'which src/test/regress/sql/hs_primary_setup.sql has been run'
14else
15	'Tests are running on a standby server during recovery'
16end;
17