Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHvpi-00048U-H0 for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2013 13:12:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VHvph-0000hK-Ve for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2013 13:12:18 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHvpg-0000fx-Ot for pgsql-hackers@postgresql.org; Fri, 06 Sep 2013 13:12:16 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VHvpa-0001nA-2H for pgsql-hackers@postgresql.org; Fri, 06 Sep 2013 13:12:16 +0000 Received: from intern.anarazel.de (p549F09F1.dip0.t-ipconnect.de [84.159.9.241]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 3010B4E8002; Fri, 6 Sep 2013 15:12:08 +0200 (CEST) Date: Fri, 6 Sep 2013 15:12:07 +0200 From: Andres Freund To: Hannu Krosing Cc: Dimitri Fontaine , Alvaro Herrera , Bruce Momjian , Robert Haas , Peter Geoghegan , Tom Lane , Andrew Dunstan , PostgreSQL-development Subject: Re: [PERFORM] encouraging index-only scans Message-ID: <20130906131207.GC600952@alap2.anarazel.de> References: <20121213024837.GB22363@momjian.us> <23298.1355370698@sss.pgh.pa.us> <20130904205655.GR21874@momjian.us> <20130906001437.GA29264@momjian.us> <20130906020043.GH27195@momjian.us> <20130906052236.GF6067@eldon.alvh.no-ip.org> <5229BED0.5070506@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5229BED0.5070506@2ndQuadrant.com> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2013-09-06 13:38:56 +0200, Hannu Krosing wrote: > On 09/06/2013 09:23 AM, Dimitri Fontaine wrote: > > Alvaro Herrera writes: > >> I'm not sure if we need to expose all these new maintenance actions as > >> SQL commands. > > I strongly think we should, if only for diagnostic purposes. > It would be much easier and more flexible to expose them > as pg_*() function calls, not proper "commands". I don't think that's as easy as you might imagine. For much of what's done in that context you cannot be in a transaction, you even need to be in a toplevel statement (since we internally CommitTransactionCommand/StartTransactionCommand). So those pg_* commands couldn't be called (except possibly via the fastpath function call API ...) which might restrict their usefulnes a teensy bit ;) So, I think extending the options passed to VACUUM - since it can take pretty generic options these days - is a more realistic path. > > Also to > > adapt to some well defined workloads that the automatic system is not > > designed to handle. > +1 What would you like to expose individually? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers