mirror of https://github.com/citusdata/citus.git
Adds debug to test pg 14 version
parent
03d34fc1d5
commit
2a1a94b4a2
|
@ -30,16 +30,17 @@ select datistemplate from pg_database where datname = 'regression';
|
||||||
|
|
||||||
DO $$
|
DO $$
|
||||||
DECLARE
|
DECLARE
|
||||||
v_version_num numeric;
|
v_version_num int;
|
||||||
BEGIN
|
BEGIN
|
||||||
SELECT current_setting('server_version_num')::numeric INTO v_version_num;
|
SELECT current_setting('server_version_num')::numeric INTO v_version_num;
|
||||||
|
raise notice 'v_version_num: %', v_version_num;
|
||||||
IF v_version_num >= 150000 THEN
|
IF v_version_num >= 150000 THEN
|
||||||
set citus.log_remote_commands = true;
|
set citus.log_remote_commands = true;
|
||||||
set citus.grep_remote_commands = '%ALTER DATABASE%';
|
set citus.grep_remote_commands = '%ALTER DATABASE%';
|
||||||
alter database regression REFRESH COLLATION VERSION;
|
alter database regression REFRESH COLLATION VERSION;
|
||||||
set citus.log_remote_commands = false;
|
set citus.log_remote_commands = false;
|
||||||
ELSE
|
ELSE
|
||||||
RAISE NOTICE 'Skipping alter database .. REFRESH COLLATION VERSION for PostgreSQL 14';
|
RAISE NOTICE 'Skipping alter database .. REFRESH COLLATION VERSION for PostgreSQL version < 15.';
|
||||||
END IF;
|
END IF;
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
Loading…
Reference in New Issue