X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 24A809F9B01 for ; Thu, 25 May 2006 13:16:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 90006-02 for ; Thu, 25 May 2006 13:16:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from my.endian.it (unknown [62.146.87.34]) by postgresql.org (Postfix) with ESMTP id D5BFE9F94EA for ; Thu, 25 May 2006 13:16:26 -0300 (ADT) Received: from dell.home.lan (host45-104.pool875.interbusiness.it [87.5.104.45]) (authenticated (0 bits)) by my.endian.it (8.11.6/8.11.6) with ESMTP id k4PGL8c31910 for ; Thu, 25 May 2006 18:21:08 +0200 Subject: lowering priority automatically at connection From: Chris Mair To: pgsql-performance@postgresql.org Content-Type: text/plain Date: Thu, 25 May 2006 18:16:24 +0200 Message-Id: <1148573784.6017.26.camel@dell.home.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/463 X-Sequence-Number: 19250 Hi, I find this very helpful: Lowering the priority of a PostgreSQL query http://weblog.bignerdranch.com/?p=11 Now I was wondering whether one could have a SELECT pg_setpriority(10); executed automatically each time a certain user connects (not necessarily using psql)? Any ideas if and how this might be possible? Regards :) Chris.