pt-kill¶
概要¶
PostgreSQLバックエンドの処理を中断、またはバックエンドを終了させます。
実行方法¶
pt-kill [options...] [command] [pid]
コマンド¶
cancel Cancel a running query.
terminate Terminate a backend with canceling query.
オプション¶
--help Print this help.
出力項目¶
特になし。
実行例¶
プロセスID 3289 で実行中のSQLをキャンセルします。
$ pt-kill cancel 3289
プロセスID 3291 で実行中のバックエンドを終了します。
$ pt-kill terminate 3291