Greenplum取消所有正在执行的SQL

SELECT 
    pg_terminate_backend(pid) 
FROM 
    pg_stat_activity 
WHERE 
    -- don't kill my own connection!
    pid <> pg_backend_pid()

你可能感兴趣的:(Greenplum取消所有正在执行的SQL)