When the user executes a long-running query using SQL workbench on Redshift (uses Redshift jdbc driver) when the user cancels it, does it still keep running on Redshift? Is there any possibility that the user must manually go to Redshift and issue a cancel <pid>
command to cancel the query?
It can be possible that some queries keep running on Redshift. You can check
Query monitoring
tab Query history
section in the Query Monitoring
TabQueries and loads
in this section you can view the running query and also have an option to terminate it.select pid, starttime, duration,
trim(user_name) as user,
trim (query) as querytxt
from stv_recents
where status = 'Running';
cancel #PID
command. Please replace #PID
with pid
from above returned query