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