mirror of https://github.com/citusdata/citus.git
Readd debug messages
parent
bd2072397a
commit
25d4e9ad51
|
@ -566,6 +566,7 @@ BEGIN
|
||||||
INSERT INTO coordinator_evaluation_table_2 VALUES (filterKey, filterKey);
|
INSERT INTO coordinator_evaluation_table_2 VALUES (filterKey, filterKey);
|
||||||
END;
|
END;
|
||||||
$procedure$;
|
$procedure$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
RESET citus.log_remote_commands ;
|
RESET citus.log_remote_commands ;
|
||||||
RESET client_min_messages;
|
RESET client_min_messages;
|
||||||
-- these calls would INSERT key = 101, so test if insert succeeded
|
-- these calls would INSERT key = 101, so test if insert succeeded
|
||||||
|
|
|
@ -304,13 +304,19 @@ BEGIN
|
||||||
RETURN incremented_val;
|
RETURN incremented_val;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('func_calls_forcepush_func()');
|
SELECT create_distributed_function('func_calls_forcepush_func()');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT create_distributed_function('inner_force_delegation_function(int)', '$1', colocate_with := 'test_nested', force_delegation := true);
|
SELECT create_distributed_function('inner_force_delegation_function(int)', '$1', colocate_with := 'test_nested', force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -475,7 +481,11 @@ BEGIN
|
||||||
END if;
|
END if;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('test_recursive(int)', '$1', colocate_with := 'test_nested', force_delegation := true);
|
SELECT create_distributed_function('test_recursive(int)', '$1', colocate_with := 'test_nested', force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -544,11 +554,15 @@ BEGIN
|
||||||
RETURN x + y;
|
RETURN x + y;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'test_non_constant(int,bigint)',
|
'test_non_constant(int,bigint)',
|
||||||
'$1',
|
'$1',
|
||||||
colocate_with := 'test_forcepushdown',
|
colocate_with := 'test_forcepushdown',
|
||||||
force_delegation := true);
|
force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -608,6 +622,8 @@ BEGIN
|
||||||
INSERT INTO emp VALUES (empname, 33);
|
INSERT INTO emp VALUES (empname, 33);
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SET citus.enable_metadata_sync TO OFF;
|
SET citus.enable_metadata_sync TO OFF;
|
||||||
CREATE OR REPLACE FUNCTION outer_emp()
|
CREATE OR REPLACE FUNCTION outer_emp()
|
||||||
RETURNS void
|
RETURNS void
|
||||||
|
@ -619,6 +635,8 @@ END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
RESET citus.enable_metadata_sync;
|
RESET citus.enable_metadata_sync;
|
||||||
SELECT create_distributed_function('inner_emp(text)','empname', force_delegation := true);
|
SELECT create_distributed_function('inner_emp(text)','empname', force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -648,11 +666,15 @@ BEGIN
|
||||||
INSERT INTO forcepushdown_schema.test_forcepushdown SELECT(a+1);
|
INSERT INTO forcepushdown_schema.test_forcepushdown SELECT(a+1);
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_select_data(int)', 'a',
|
'insert_select_data(int)', 'a',
|
||||||
colocate_with := 'test_forcepushdown',
|
colocate_with := 'test_forcepushdown',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -721,11 +743,15 @@ BEGIN
|
||||||
SELECT intcol FROM forcepushdown_schema.test_forcepushdown_noncolocate;
|
SELECT intcol FROM forcepushdown_schema.test_forcepushdown_noncolocate;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_select_data_nonlocal(int)', 'a',
|
'insert_select_data_nonlocal(int)', 'a',
|
||||||
colocate_with := 'test_forcepushdown',
|
colocate_with := 'test_forcepushdown',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -797,11 +823,15 @@ BEGIN
|
||||||
INSERT INTO forcepushdown_schema.test_forcepushdown_char VALUES (a);
|
INSERT INTO forcepushdown_schema.test_forcepushdown_char VALUES (a);
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_data_char(char)', 'a',
|
'insert_data_char(char)', 'a',
|
||||||
colocate_with := 'test_forcepushdown_char',
|
colocate_with := 'test_forcepushdown_char',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -813,11 +843,15 @@ BEGIN
|
||||||
INSERT INTO forcepushdown_schema.test_forcepushdown_varchar VALUES (a);
|
INSERT INTO forcepushdown_schema.test_forcepushdown_varchar VALUES (a);
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_data_varchar(varchar)', 'a',
|
'insert_data_varchar(varchar)', 'a',
|
||||||
colocate_with := 'test_forcepushdown_varchar',
|
colocate_with := 'test_forcepushdown_varchar',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -829,11 +863,15 @@ BEGIN
|
||||||
INSERT INTO forcepushdown_schema.test_forcepushdown_text VALUES (a);
|
INSERT INTO forcepushdown_schema.test_forcepushdown_text VALUES (a);
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_data_text(text)', 'a',
|
'insert_data_text(text)', 'a',
|
||||||
colocate_with := 'test_forcepushdown_text',
|
colocate_with := 'test_forcepushdown_text',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -935,11 +973,15 @@ BEGIN
|
||||||
RAISE NOTICE 'Result: %', var;
|
RAISE NOTICE 'Result: %', var;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'select_data(int)', 'a',
|
'select_data(int)', 'a',
|
||||||
colocate_with := 'test_subquery',
|
colocate_with := 'test_subquery',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -955,11 +997,15 @@ BEGIN
|
||||||
RAISE NOTICE 'Result: %', var;
|
RAISE NOTICE 'Result: %', var;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'select_data_noncolocate(int)', 'a',
|
'select_data_noncolocate(int)', 'a',
|
||||||
colocate_with := 'test_subquery',
|
colocate_with := 'test_subquery',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -974,11 +1020,15 @@ BEGIN
|
||||||
RAISE NOTICE 'Result: %', var;
|
RAISE NOTICE 'Result: %', var;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_select_data_cte1(int)', 'a',
|
'insert_select_data_cte1(int)', 'a',
|
||||||
colocate_with := 'test_subquery',
|
colocate_with := 'test_subquery',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -993,11 +1043,15 @@ BEGIN
|
||||||
RAISE NOTICE 'Result: %', var;
|
RAISE NOTICE 'Result: %', var;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_select_data_cte2(int)', 'a',
|
'insert_select_data_cte2(int)', 'a',
|
||||||
colocate_with := 'test_subquery',
|
colocate_with := 'test_subquery',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1013,11 +1067,15 @@ BEGIN
|
||||||
RAISE NOTICE 'Result: %', var;
|
RAISE NOTICE 'Result: %', var;
|
||||||
END;
|
END;
|
||||||
$fn$;
|
$fn$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function(
|
SELECT create_distributed_function(
|
||||||
'insert_data_cte_nondist(int)', 'a',
|
'insert_data_cte_nondist(int)', 'a',
|
||||||
colocate_with := 'test_subquery',
|
colocate_with := 'test_subquery',
|
||||||
force_delegation := true
|
force_delegation := true
|
||||||
);
|
);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1181,7 +1239,11 @@ BEGIN
|
||||||
RETURN x + y;
|
RETURN x + y;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('test_prepare(int,int)','x',force_delegation :=true, colocate_with := 'table_test_prepare');
|
SELECT create_distributed_function('test_prepare(int,int)','x',force_delegation :=true, colocate_with := 'table_test_prepare');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1375,8 +1437,12 @@ BEGIN
|
||||||
RETURN x;
|
RETURN x;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('test(int)', 'x',
|
SELECT create_distributed_function('test(int)', 'x',
|
||||||
colocate_with := 'test_perform', force_delegation := true);
|
colocate_with := 'test_perform', force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, ta
|
||||||
CREATE FUNCTION add(integer, integer) RETURNS integer
|
CREATE FUNCTION add(integer, integer) RETURNS integer
|
||||||
AS 'SELECT $1 + $2;'
|
AS 'SELECT $1 + $2;'
|
||||||
LANGUAGE SQL;
|
LANGUAGE SQL;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT * FROM table1 JOIN add(3,5) sum ON (id = sum) ORDER BY id ASC;
|
SELECT * FROM table1 JOIN add(3,5) sum ON (id = sum) ORDER BY id ASC;
|
||||||
id | data | sum
|
id | data | sum
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
|
@ -39,6 +39,8 @@ DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, ta
|
||||||
CREATE FUNCTION add(integer, integer) RETURNS integer
|
CREATE FUNCTION add(integer, integer) RETURNS integer
|
||||||
AS 'SELECT $1 + $2;'
|
AS 'SELECT $1 + $2;'
|
||||||
LANGUAGE SQL;
|
LANGUAGE SQL;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT * FROM table1 JOIN add(3,5) sum ON (id = sum) ORDER BY id ASC;
|
SELECT * FROM table1 JOIN add(3,5) sum ON (id = sum) ORDER BY id ASC;
|
||||||
DEBUG: generating subplan XXX_1 for subquery SELECT sum FROM functions_in_joins.add(3, 5) sum(sum)
|
DEBUG: generating subplan XXX_1 for subquery SELECT sum FROM functions_in_joins.add(3, 5) sum(sum)
|
||||||
DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, table1.data, sum.sum FROM (functions_in_joins.table1 JOIN (SELECT intermediate_result.sum FROM read_intermediate_result('XXX_1'::text, 'binary'::citus_copy_format) intermediate_result(sum integer)) sum ON ((table1.id OPERATOR(pg_catalog.=) sum.sum))) ORDER BY table1.id
|
DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, table1.data, sum.sum FROM (functions_in_joins.table1 JOIN (SELECT intermediate_result.sum FROM read_intermediate_result('XXX_1'::text, 'binary'::citus_copy_format) intermediate_result(sum integer)) sum ON ((table1.id OPERATOR(pg_catalog.=) sum.sum))) ORDER BY table1.id
|
||||||
|
|
|
@ -139,7 +139,11 @@ BEGIN
|
||||||
INSERT INTO mx_add_coordinator.ref(groupid) VALUES (gid);
|
INSERT INTO mx_add_coordinator.ref(groupid) VALUES (gid);
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('my_group_id()', colocate_with := 'ref');
|
SELECT create_distributed_function('my_group_id()', colocate_with := 'ref');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -417,6 +417,8 @@ RESET citus.enable_metadata_sync;
|
||||||
CALL multi_mx_call.mx_call_proc_tx(10);
|
CALL multi_mx_call.mx_call_proc_tx(10);
|
||||||
-- after distribution ...
|
-- after distribution ...
|
||||||
select create_distributed_function('mx_call_proc_tx(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_proc_tx(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -486,7 +488,11 @@ BEGIN
|
||||||
RAISE WARNING 'warning';
|
RAISE WARNING 'warning';
|
||||||
RAISE EXCEPTION 'error';
|
RAISE EXCEPTION 'error';
|
||||||
END;$$;
|
END;$$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
select create_distributed_function('mx_call_proc_raise(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_proc_raise(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -550,7 +556,11 @@ SET client_min_messages TO DEBUG1;
|
||||||
--
|
--
|
||||||
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
||||||
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('mx_call_add(int,int)');
|
SELECT create_distributed_function('mx_call_add(int,int)');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -417,6 +417,8 @@ RESET citus.enable_metadata_sync;
|
||||||
CALL multi_mx_call.mx_call_proc_tx(10);
|
CALL multi_mx_call.mx_call_proc_tx(10);
|
||||||
-- after distribution ...
|
-- after distribution ...
|
||||||
select create_distributed_function('mx_call_proc_tx(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_proc_tx(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -486,7 +488,11 @@ BEGIN
|
||||||
RAISE WARNING 'warning';
|
RAISE WARNING 'warning';
|
||||||
RAISE EXCEPTION 'error';
|
RAISE EXCEPTION 'error';
|
||||||
END;$$;
|
END;$$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
select create_distributed_function('mx_call_proc_raise(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_proc_raise(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -550,7 +556,11 @@ SET client_min_messages TO DEBUG1;
|
||||||
--
|
--
|
||||||
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
||||||
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('mx_call_add(int,int)');
|
SELECT create_distributed_function('mx_call_add(int,int)');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,8 @@ select colocate_proc_with_table('squares', 'mx_call_dist_table_2'::regclass, 0);
|
||||||
|
|
||||||
select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
||||||
colocate_with := 'mx_call_dist_table_bigint');
|
colocate_with := 'mx_call_dist_table_bigint');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -221,6 +223,8 @@ select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
||||||
select create_distributed_function('mx_call_func_bigint_force(bigint,bigint)', 'x',
|
select create_distributed_function('mx_call_func_bigint_force(bigint,bigint)', 'x',
|
||||||
colocate_with := 'mx_call_dist_table_2',
|
colocate_with := 'mx_call_dist_table_2',
|
||||||
force_delegation := true);
|
force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -417,6 +421,8 @@ select mx_call_func_tbl(10);
|
||||||
|
|
||||||
-- after distribution ...
|
-- after distribution ...
|
||||||
select create_distributed_function('mx_call_func_tbl(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_func_tbl(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -437,7 +443,11 @@ BEGIN
|
||||||
RAISE WARNING 'warning';
|
RAISE WARNING 'warning';
|
||||||
RAISE EXCEPTION 'error';
|
RAISE EXCEPTION 'error';
|
||||||
END;$$;
|
END;$$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
select create_distributed_function('mx_call_func_raise(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_func_raise(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -587,7 +597,11 @@ SET citus.shard_replication_factor = 1;
|
||||||
--
|
--
|
||||||
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
||||||
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('mx_call_add(int,int)', '$1');
|
SELECT create_distributed_function('mx_call_add(int,int)', '$1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,8 @@ select colocate_proc_with_table('squares', 'mx_call_dist_table_2'::regclass, 0);
|
||||||
|
|
||||||
select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
||||||
colocate_with := 'mx_call_dist_table_bigint');
|
colocate_with := 'mx_call_dist_table_bigint');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -221,6 +223,8 @@ select create_distributed_function('mx_call_func_bigint(bigint,bigint)', 'x',
|
||||||
select create_distributed_function('mx_call_func_bigint_force(bigint,bigint)', 'x',
|
select create_distributed_function('mx_call_func_bigint_force(bigint,bigint)', 'x',
|
||||||
colocate_with := 'mx_call_dist_table_2',
|
colocate_with := 'mx_call_dist_table_2',
|
||||||
force_delegation := true);
|
force_delegation := true);
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -417,6 +421,8 @@ select mx_call_func_tbl(10);
|
||||||
|
|
||||||
-- after distribution ...
|
-- after distribution ...
|
||||||
select create_distributed_function('mx_call_func_tbl(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_func_tbl(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -437,7 +443,11 @@ BEGIN
|
||||||
RAISE WARNING 'warning';
|
RAISE WARNING 'warning';
|
||||||
RAISE EXCEPTION 'error';
|
RAISE EXCEPTION 'error';
|
||||||
END;$$;
|
END;$$;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
select create_distributed_function('mx_call_func_raise(int)', '$1', 'mx_call_dist_table_1');
|
select create_distributed_function('mx_call_func_raise(int)', '$1', 'mx_call_dist_table_1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -587,7 +597,11 @@ SET citus.shard_replication_factor = 1;
|
||||||
--
|
--
|
||||||
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
CREATE FUNCTION mx_call_add(int, int) RETURNS int
|
||||||
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
AS 'select $1 + $2;' LANGUAGE SQL IMMUTABLE;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SELECT create_distributed_function('mx_call_add(int,int)', '$1');
|
SELECT create_distributed_function('mx_call_add(int,int)', '$1');
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
create_distributed_function
|
create_distributed_function
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -2016,6 +2016,8 @@ BEGIN
|
||||||
END IF;
|
END IF;
|
||||||
END;
|
END;
|
||||||
$$LANGUAGE plpgsql;
|
$$LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
SET client_min_messages TO ERROR;
|
SET client_min_messages TO ERROR;
|
||||||
\set VERBOSITY terse
|
\set VERBOSITY terse
|
||||||
SELECT raise_failed_execution_router($$
|
SELECT raise_failed_execution_router($$
|
||||||
|
|
|
@ -1861,6 +1861,8 @@ CREATE OR REPLACE FUNCTION volatile_func_test()
|
||||||
RETURNS INT AS $$
|
RETURNS INT AS $$
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
$$ LANGUAGE sql VOLATILE;
|
$$ LANGUAGE sql VOLATILE;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
-- Citus should be able to evalute functions/row comparisons on the LIMIT/OFFSET
|
-- Citus should be able to evalute functions/row comparisons on the LIMIT/OFFSET
|
||||||
SELECT user_id, array_length(events_table, 1)
|
SELECT user_id, array_length(events_table, 1)
|
||||||
FROM (
|
FROM (
|
||||||
|
|
|
@ -587,6 +587,8 @@ CREATE OR REPLACE FUNCTION fixed_volatile_value() RETURNS integer VOLATILE AS $$
|
||||||
RETURN 1;
|
RETURN 1;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
DEBUG: switching to sequential query execution mode
|
||||||
|
DETAIL: A command for a distributed function is run. To make sure subsequent commands see the function correctly we need to make sure to use only one connection for all future commands
|
||||||
EXECUTE test_values_pushdown(fixed_volatile_value(),2,3);
|
EXECUTE test_values_pushdown(fixed_volatile_value(),2,3);
|
||||||
NOTICE: evaluated on the coordinator
|
NOTICE: evaluated on the coordinator
|
||||||
CONTEXT: PL/pgSQL function fixed_volatile_value() line XX at RAISE
|
CONTEXT: PL/pgSQL function fixed_volatile_value() line XX at RAISE
|
||||||
|
|
Loading…
Reference in New Issue