Fixes test errors

alter_database_nonmain
gurkanindibay 2024-03-18 11:56:13 +03:00
parent 3c3477efec
commit a5385d9f9c
2 changed files with 11 additions and 11 deletions

View File

@ -1537,19 +1537,19 @@ CREATE ROLE local_role_1;
ALTER DATABASE local_database_1 REFRESH COLLATION VERSION;
NOTICE: version has not changed
SET citus.enable_create_database_propagation TO on;
create database alter_db_from_nonmain_db;
NOTICE: issuing ALTER DATABASE citus_temp_database_2_0 RENAME TO alter_db_from_nonmain_db
NOTICE: issuing ALTER DATABASE citus_temp_database_2_0 RENAME TO alter_db_from_nonmain_db
\c alter_db_from_nonmain_db
create database alter_db_from_nonmain_db_pg15;
NOTICE: issuing ALTER DATABASE citus_temp_database_2_0 RENAME TO alter_db_from_nonmain_db_pg15
NOTICE: issuing ALTER DATABASE citus_temp_database_2_0 RENAME TO alter_db_from_nonmain_db_pg15
\c alter_db_from_nonmain_db_pg15
set citus.log_remote_commands = true;
set citus.grep_remote_commands = '%ALTER DATABASE%';
ALTER DATABASE alter_db_from_nonmain_db REFRESH COLLATION VERSION;
NOTICE: issuing SELECT citus_internal.execute_command_on_remote_nodes_as_user('ALTER DATABASE alter_db_from_nonmain_db REFRESH COLLATION VERSION;', 'postgres')
ALTER DATABASE alter_db_from_nonmain_db_pg15 REFRESH COLLATION VERSION;
NOTICE: issuing SELECT citus_internal.execute_command_on_remote_nodes_as_user('ALTER DATABASE alter_db_from_nonmain_db_pg15 REFRESH COLLATION VERSION;', 'postgres')
NOTICE: version has not changed
reset citus.log_remote_commands;
reset citus.grep_remote_commands;
\c regression
drop database alter_db_from_nonmain_db;
drop database alter_db_from_nonmain_db_pg15;
SET citus.enable_create_database_propagation TO OFF;
REVOKE CONNECT, TEMPORARY, CREATE ON DATABASE local_database_1 FROM local_role_1;
DROP ROLE local_role_1;

View File

@ -978,18 +978,18 @@ CREATE ROLE local_role_1;
ALTER DATABASE local_database_1 REFRESH COLLATION VERSION;
SET citus.enable_create_database_propagation TO on;
create database alter_db_from_nonmain_db;
create database alter_db_from_nonmain_db_pg15;
\c alter_db_from_nonmain_db
\c alter_db_from_nonmain_db_pg15
set citus.log_remote_commands = true;
set citus.grep_remote_commands = '%ALTER DATABASE%';
ALTER DATABASE alter_db_from_nonmain_db REFRESH COLLATION VERSION;
ALTER DATABASE alter_db_from_nonmain_db_pg15 REFRESH COLLATION VERSION;
reset citus.log_remote_commands;
reset citus.grep_remote_commands;
\c regression
drop database alter_db_from_nonmain_db;
drop database alter_db_from_nonmain_db_pg15;
SET citus.enable_create_database_propagation TO OFF;