CANCEL
Cancel a running query.
CANCEL query_id
For example:
premdb=# cancel 22669;
CANCEL
You can select the query_id
from the sys.query
system
view, or you can look it up in Yellowbrick Manager (go to Query
Activity). See also Canceling Queries.