Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3082B9FB2CE for ; Sun, 11 Feb 2007 13:38:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 41613-02 for ; Sun, 11 Feb 2007 13:38:02 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id F18189F9FDA for ; Sun, 11 Feb 2007 13:38:01 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l1BHbvNm001891; Sun, 11 Feb 2007 12:37:59 -0500 (EST) To: Andreas Kretschmer cc: pgsql-general@postgresql.org Subject: Re: [ADMIN] Priorities for users or queries? In-reply-to: <20070211084716.GB6652@KanotixBox> References: <45CE69B5.40204@araisoft.com> <376dd1950702110031i40d41133n85c6010d3f81d903@mail.gmail.com> <20070211084716.GB6652@KanotixBox> Comments: In-reply-to Andreas Kretschmer message dated "Sun, 11 Feb 2007 09:47:16 +0100" Date: Sun, 11 Feb 2007 12:37:57 -0500 Message-ID: <1890.1171215477@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.154 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200702/514 X-Sequence-Number: 109004 Andreas Kretschmer writes: > You can retrieve the PID and the username of running querys in > pg_stat_activity. Perhaps, with this knowledge and an untrusted language > you can run system-commands such renice to change the priority of > running postmaster-processes. See "priority inversion" in the archives. regards, tom lane