{"version":"1.0","blog_url":"https://oboe2uran.hatenablog.com/","url":"https://oboe2uran.hatenablog.com/entry/2024/05/19/200013","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2024%2F05%2F19%2F200013\" title=\"DB\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u8abf\u67fb - Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"PostgreSQL \u306e\u5834\u5408\u73fe\u5728\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u898b\u308b\u3002 SELECT * FROM pg_stat_activity \u73fe\u5728\u63a5\u7d9a\u4e2d\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306f\u3001 WHERE state = 'active' \u3042\u308b\u3044\u306f\u3001 WHERE xact_start IS NOT NULL \u3067\u3001\u62bd\u51fa\u3059\u308b\u3002SELECT pg_terminate_backend(PID) \u3067\u5f37\u5236\u7684\u306b\u5207\u65ad\u3059\u308b\u3002 MySQL\u306e\u5834\u5408 SELECT * FROM information_schema.PROCESSLIST \u3042\u308b\u3044\u306f\u3001 show processlist \u3067\u3001\u73fe\u5728\u306e\u5404\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u72b6\u6cc1\u3092\u53c2\u7167\u3059\u308b\u3002 \u7d50\u679c\u306e Time \u304c\u7d4c\u904e\u6642\u9593\u306a\u306e\u3067\u3001 60 \u2026","provider_url":"https://hatena.blog","published":"2024-05-19 20:00:13","title":"DB\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u8abf\u67fb","categories":["SQL"],"type":"rich","author_name":"posturan","author_url":"https://blog.hatena.ne.jp/posturan/","image_url":null,"provider_name":"Hatena Blog","width":"100%","blog_title":"Oboe\u5439\u304d\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9ed9\u793a\u9332"}