PG16 - Add reindex database/system tests (#7167)

In PG16, REINDEX DATABASE/SYSTEM name is optional.
We already don't propagate these commands automatically.
Testing here with run_command_on_workers.

Relevant PG commit:
https://github.com/postgres/postgres/commit/2cbc3c1
pg16_grant_inherit_set
Naisila Puka 2023-09-04 11:31:57 +03:00 committed by francisjodi
parent c6d5240af7
commit 645a0d1227
2 changed files with 35 additions and 0 deletions

View File

@ -916,6 +916,28 @@ SELECT result FROM run_command_on_workers
REINDEX REINDEX
(2 rows) (2 rows)
-- REINDEX DATABASE/SYSTEM name is optional
-- We already don't propagate these commands automatically
-- Testing here with run_command_on_workers
-- Relevant PG commit: https://github.com/postgres/postgres/commit/2cbc3c1
REINDEX DATABASE;
SELECT result FROM run_command_on_workers
($$REINDEX DATABASE$$);
result
---------------------------------------------------------------------
REINDEX
REINDEX
(2 rows)
REINDEX SYSTEM;
SELECT result FROM run_command_on_workers
($$REINDEX SYSTEM$$);
result
---------------------------------------------------------------------
REINDEX
REINDEX
(2 rows)
-- --
-- random_normal() to provide normally-distributed random numbers -- random_normal() to provide normally-distributed random numbers
-- adding here the same tests as the ones with random() in aggregate_support.sql -- adding here the same tests as the ones with random() in aggregate_support.sql

View File

@ -530,6 +530,19 @@ REINDEX SYSTEM;
SELECT result FROM run_command_on_workers SELECT result FROM run_command_on_workers
($$REINDEX SYSTEM$$); ($$REINDEX SYSTEM$$);
-- REINDEX DATABASE/SYSTEM name is optional
-- We already don't propagate these commands automatically
-- Testing here with run_command_on_workers
-- Relevant PG commit: https://github.com/postgres/postgres/commit/2cbc3c1
REINDEX DATABASE;
SELECT result FROM run_command_on_workers
($$REINDEX DATABASE$$);
REINDEX SYSTEM;
SELECT result FROM run_command_on_workers
($$REINDEX SYSTEM$$);
-- --
-- random_normal() to provide normally-distributed random numbers -- random_normal() to provide normally-distributed random numbers
-- adding here the same tests as the ones with random() in aggregate_support.sql -- adding here the same tests as the ones with random() in aggregate_support.sql