Received: from mailmtx.acnet.net (mailmtx.acnet.net [170.76.16.130]) by postgresql.org (Postfix) with ESMTP id 9218247591C for ; Tue, 16 Apr 2002 01:06:57 -0400 (EDT) Received: from localhost.localdomain ([170.76.42.206]) by mailmtx.acnet.net (Post.Office MTA v3.5.3 release 223 ID# 0-52476U50000L50000S0V35) with ESMTP id net for ; Tue, 16 Apr 2002 00:05:52 -0500 Subject: Re: Killing a child process From: David Stanaway To: pgsql-admin@postgresql.org In-Reply-To: <7605.1018916938@sss.pgh.pa.us> References: <7605.1018916938@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-gN6lhSdyIfIPd0i4UhrR" X-Mailer: Ximian Evolution 1.0.3 Date: 16 Apr 2002 00:06:55 -0500 Message-Id: <1018933616.1888.30.camel@debian> Mime-Version: 1.0 X-Archive-Number: 200204/145 X-Sequence-Number: 4033 --=-gN6lhSdyIfIPd0i4UhrR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2002-04-15 at 19:28, Tom Lane wrote: > "Bojan Belovic" writes: > > Every once in a while I'll spot a query that is taking unusually long t= ime > > to run (a chiled process that keeps the processor at 100% for like 3 > > minutes). Is there a way to see the queries currently executing >=20 > ps, top? Also see the stats views, if you are running 7.2. >=20 > > and/or kill > > a single process without affecting the operation of the server >=20 > kill -INT to a backend will issue a query cancel, which is pretty safe. There is also pgmonitor (Which I think is in contrib) which shows the stats on the current backend processes (Works on 7.1.3 for me) and is much nicer for working out whats using CPU, and the query that is causing the problem. -- David Stanaway --=-gN6lhSdyIfIPd0i4UhrR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iQEXAwUAPLuxbr6yIDFGeSAyFAJPmgQAkdkBx5BX9t/t95f+/Hak09MZnzw+iQYD b3xY9EuCBimIvlZWZA6LPIjoNOC/+CVl25Qsl9PPY/UM38+9BUhMSZUW+Xsz6DNV j3Vimte/zRXFBPWGiJ+RyZau4u9tcSU5aPLx00RKXxXrkab+2gu8XbNzg04w+5Be 3oCBsmSv57cEAJ1xH9KoeQsJLSL9mx31eCHgo1cBJKKS1KfsDtVt2YDuosQEFJnt u5/pRaHsxGH32gtdK4RnGRBNr7k69rf5fta6/g0+xQ6tD8wgUXSmo+hoMe1zdCFn MnBNDvequ9CX/SaK6nxkD8HS9g0WjevobdBFT7QT94Lp+TAUAu3phS+A =cA6Z -----END PGP SIGNATURE----- --=-gN6lhSdyIfIPd0i4UhrR--