mirror of https://github.com/citusdata/citus.git
Feedback
parent
c1e43b25da
commit
4f60e3a149
|
@ -1,7 +1,9 @@
|
|||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* call.c
|
||||
* Commands for call remote stored procedures.
|
||||
* Commands for distributing CALL for distributed procedures.
|
||||
*
|
||||
* Procedures can be distributed with create_distributed_function.
|
||||
*
|
||||
* Copyright (c) 2019, Citus Data, Inc.
|
||||
*
|
||||
|
@ -169,6 +171,7 @@ CallFuncExprRemotely(CallStmt *callStmt, DistObjectCacheEntry *procedure,
|
|||
TupleDesc tupleDesc = CallStmtResultDesc(callStmt);
|
||||
TupleTableSlot *slot = MakeSingleTupleTableSlotCompat(tupleDesc,
|
||||
&TTSOpsMinimalTuple);
|
||||
bool hasReturning = true;
|
||||
Task *task = CitusMakeNode(Task);
|
||||
|
||||
task->jobId = INVALID_JOB_ID;
|
||||
|
@ -182,7 +185,7 @@ CallFuncExprRemotely(CallStmt *callStmt, DistObjectCacheEntry *procedure,
|
|||
task->taskPlacementList = placementList;
|
||||
|
||||
ExecuteTaskListExtended(ROW_MODIFY_NONE, list_make1(task),
|
||||
tupleDesc, tupleStore, true,
|
||||
tupleDesc, tupleStore, hasReturning,
|
||||
MaxAdaptiveExecutorPoolSize);
|
||||
|
||||
while (tuplestore_gettupleslot(tupleStore, true, false, slot))
|
||||
|
|
|
@ -390,14 +390,7 @@ PL/pgSQL function mx_call_proc(integer,integer) line 8 at assignment
|
|||
27
|
||||
(1 row)
|
||||
|
||||
--
|
||||
-- clean-up
|
||||
--
|
||||
reset client_min_messages;
|
||||
reset citus.shard_replication_factor;
|
||||
reset citus.replication_model;
|
||||
reset search_path;
|
||||
\set VERBOSITY terse
|
||||
drop schema multi_mx_call cascade;
|
||||
NOTICE: drop cascades to 10 other objects
|
||||
\set VERBOSITY default
|
||||
|
|
|
@ -311,14 +311,7 @@ call multi_mx_call.mx_call_proc(floor(random())::int, 2);
|
|||
ERROR: syntax error at or near "call"
|
||||
LINE 1: call multi_mx_call.mx_call_proc(floor(random())::int, 2);
|
||||
^
|
||||
--
|
||||
-- clean-up
|
||||
--
|
||||
reset client_min_messages;
|
||||
reset citus.shard_replication_factor;
|
||||
reset citus.replication_model;
|
||||
reset search_path;
|
||||
\set VERBOSITY terse
|
||||
drop schema multi_mx_call cascade;
|
||||
NOTICE: drop cascades to 5 other objects
|
||||
\set VERBOSITY default
|
||||
|
|
|
@ -180,15 +180,7 @@ call multi_mx_call.mx_call_proc(multi_mx_call.mx_call_add(3, 4), 2);
|
|||
-- volatile parameter cannot be pushed down
|
||||
call multi_mx_call.mx_call_proc(floor(random())::int, 2);
|
||||
|
||||
--
|
||||
-- clean-up
|
||||
--
|
||||
reset client_min_messages;
|
||||
reset citus.shard_replication_factor;
|
||||
reset citus.replication_model;
|
||||
reset search_path;
|
||||
|
||||
\set VERBOSITY terse
|
||||
drop schema multi_mx_call cascade;
|
||||
\set VERBOSITY default
|
||||
|
||||
|
|
Loading…
Reference in New Issue