Open begriffs opened 6 years ago
The first command should be updated as below: Handled it with the below change to the first command:
CREATE temp TABLE transactions_on_workers AS
SELECT nodename,
Split_part(txn_on_worker, '$', 1) process_id, Split_part(txn_on_worker,
'$', 2) initiator_node_identifier, Split_part(txn_on_worker, '$', 3)
transaction_number, Split_part(txn_on_worker, '$', 4) transaction_stamp FROM (
SELECT unnest(RESULT::text[]) txn_on_worker, nodename FROM (SELECT CASE WHEN
result ='' THEN '{}' ELSE result end result, nodename FROM
run_command_on_workers($cmd$select array_agg(process_id||'$'||
initiator_node_identifier||'$'||transaction_number||'$'||transaction_stamp) FROM
get_all_active_transactions()$cmd$))b)a;
Communication goals (e.g. detailed howto vs orientation)
Sai asked, "is there a way to identify the worker sessions (generated by say a router query) given a coordinator session?"
Good locations for content in docs structure
https://docs.citusdata.com/en/v7.2/admin_guide/cluster_management.html?highlight=diagnostic#useful-diagnostic-queries
How does this work? (devs)
Example sql
Sai cooked up these queries:
Corner cases, gotchas