mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 17:46:56 +02:00
21 lines
667 B
Plaintext
21 lines
667 B
Plaintext
|
--
|
||
|
-- Hot Standby tests
|
||
|
--
|
||
|
-- hs_standby_check.sql
|
||
|
--
|
||
|
--
|
||
|
-- If the query below returns false then all other tests will fail after it.
|
||
|
--
|
||
|
select case pg_is_in_recovery() when false then
|
||
|
'These tests are intended only for execution on a standby server that is reading ' ||
|
||
|
'WAL from a server upon which the regression database is already created and into ' ||
|
||
|
'which src/test/regress/sql/hs_primary_setup.sql has been run'
|
||
|
else
|
||
|
'Tests are running on a standby server during recovery'
|
||
|
end;
|
||
|
case
|
||
|
-------------------------------------------------------
|
||
|
Tests are running on a standby server during recovery
|
||
|
(1 row)
|
||
|
|