Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id AEEFAB5DC1A for ; Mon, 12 Sep 2011 07:16:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13437-08 for ; Mon, 12 Sep 2011 10:15:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id DB590B5DC2B for ; Mon, 12 Sep 2011 07:15:53 -0300 (ADT) Received: from [192.168.0.9] (uni14-1-82-233-223-216.fbx.proxad.net [82.233.223.216]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 9A65F3B8F5; Mon, 12 Sep 2011 12:15:53 +0200 (CEST) Subject: Re: how can I get "initial_value"(setting_name) ? From: Guillaume Lelarge To: Marc Mamin Cc: pgsql-admin@postgresql.org Date: Mon, 12 Sep 2011 12:15:53 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3 (3.0.3-1.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1315822553.2708.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/60 X-Sequence-Number: 38297 On Mon, 2011-09-12 at 11:59 +0200, Marc Mamin wrote: > differentiated memory settings > > Hello, > > I need to implement differentiate memory settings in order to favor some > given operations. > (see function below) > > I miss an admin function to reset the settings to the initial values. > > Do I oversight something ? > > For the case such a function is not yet available, I guess that > following may prove useful: > > - reset_setting (setting_name [, is_local]) See RESET command (http://www.postgresql.org/docs/9.0/interactive/sql-reset.html). > - (read)initial_value(setting_name) > See pg_settings catalog (http://www.postgresql.org/docs/9.0/interactive/view-pg-settings.html, columns boot_val and reset_val). -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com