Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BC2616328BD for ; Thu, 3 Jun 2010 14:07:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 41497-10 for ; Thu, 3 Jun 2010 17:07:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id 32DC063238B for ; Thu, 3 Jun 2010 14:07:10 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MJmWC-1OJ7xE3fIS-0016vd; Thu, 03 Jun 2010 19:07:05 +0200 Message-ID: <4C07E137.1070400@2ndquadrant.com> Date: Thu, 03 Jun 2010 13:07:03 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: v.tolstov@selfip.ru CC: Shoaib Mir , Anh Ky Huynh , PostgreSQL Admin Subject: Re: graceful reload References: <1275546216.6693.2.camel@work.selfip.ru> <20100603144528.2234301e@icy.localdomain> <1275551303.23110.1.camel@work.selfip.ru> <1275552074.23110.7.camel@work.selfip.ru> In-Reply-To: <1275552074.23110.7.camel@work.selfip.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/rQjYEO/d7YjAnAWU7a2Fni76cr2UqX1KNmC+ rC2XsyU6fX4DMACeiwqQ4/+BsGfmnVywYcPovMZv/3tICTRA7n O2Bi1ocV8cdw0gu/HIYV2bpRO6lSV7T X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/36 X-Sequence-Number: 34814 Vasiliy G Tolstov wrote: > In config file some in of this settings exists comment line like > "changes require restart". This is mean exactly restart or reload can do > this? > Run this: $ psql -c "select name,context from pg_settings" This will sort out which settings are in which category definitively, rather than relying on the sometimes ambiguous comments in the file. Settings that say "postmaster" require a full database restart. Ones labeled "sighup" can be changed in the postgresql.conf and then the server signaled to use them, most easily with: pg_ctl reload -OR- psql -c "select pg_reload_conf()" Ones labeled "user" you can actually change for any user at any time during their session. Modifying the defaults and then executing the sighup procedure will make those new defaults active, but not for any clients that already have open connections. I recommend using SHOW or looking at pg_settings after making a change and reloading the server config to confirm it took. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us