citus/src/backend/distributed/executor
Marco Slot 8893cc141d Support INSERT...SELECT with ON CONFLICT or RETURNING via coordinator
Before this commit, Citus supported INSERT...SELECT queries with
ON CONFLICT or RETURNING clauses only for pushdownable ones, since
queries supported via coordinator were utilizing COPY infrastructure
of PG to send selected tuples to the target worker nodes.

After this PR, INSERT...SELECT queries with ON CONFLICT or RETURNING
clauses will be performed in two phases via coordinator. In the first
phase selected tuples will be saved to the intermediate table which
is colocated with target table of the INSERT...SELECT query. Note that,
a utility function to save results to the colocated intermediate result
also implemented as a part of this commit. In the second phase, INSERT..
SELECT query is directly run on the worker node using the intermediate
table as the source table.
2018-11-30 15:29:12 +03:00
..
citus_custom_scan.c Show router modify,select and real-time queries on MX views 2018-10-02 13:59:38 +03:00
insert_select_executor.c Support INSERT...SELECT with ON CONFLICT or RETURNING via coordinator 2018-11-30 15:29:12 +03:00
intermediate_results.c Description: Refactor code that handles DDL commands from one file into a module 2018-11-14 13:36:27 +01:00
multi_client_executor.c ApplyLogRedaction noop func is added 2018-08-17 14:48:54 -07:00
multi_executor.c COPY to a task file no longer switches to superuser 2018-11-22 18:15:33 +01:00
multi_real_time_executor.c Don't try to check unopened connection in EXEC_TASK_FAILED state 2018-07-23 11:41:02 -06:00
multi_router_executor.c Support INSERT...SELECT with ON CONFLICT or RETURNING via coordinator 2018-11-30 15:29:12 +03:00
multi_server_executor.c ApplyLogRedaction noop func is added 2018-08-17 14:48:54 -07:00
multi_task_tracker_executor.c Add user ID suffix to intermediate files in re-partition jobs 2018-11-23 08:36:11 +01:00
query_stats.c Add groundwork for citus_stat_statements api 2018-06-27 14:20:03 +03:00
subplan_execution.c Ensure single-shard modifying CTEs are part of distributed transaction 2018-05-06 12:49:40 +02:00