Fix create_distributed_function call in multi_mx_call test

release-9.0
Marco Slot 2019-11-11 15:59:19 +01:00
parent 14848be5db
commit 637c6b8b80
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ 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;
SELECT create_distributed_function('mx_call_add(int,int)', '$1'); SELECT create_distributed_function('mx_call_add(int,int)', '$1', 'mx_call_dist_table_1');
DEBUG: switching to sequential query execution mode DEBUG: switching to sequential query execution mode
DETAIL: A distributed function is created. To make sure subsequent commands see the type correctly we need to make sure to use only one connection for all future commands DETAIL: A distributed function is created. To make sure subsequent commands see the type correctly we need to make sure to use only one connection for all future commands
create_distributed_function create_distributed_function

View File

@ -167,7 +167,7 @@ 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;
SELECT create_distributed_function('mx_call_add(int,int)', '$1'); SELECT create_distributed_function('mx_call_add(int,int)', '$1', 'mx_call_dist_table_1');
-- non-const distribution parameters cannot be pushed down -- non-const distribution parameters cannot be pushed down
call multi_mx_call.mx_call_proc(2, mx_call_add(3, 4)); call multi_mx_call.mx_call_proc(2, mx_call_add(3, 4));