Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 055EE632870 for ; Fri, 4 Jun 2010 03:07:26 -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 62534-05 for ; Fri, 4 Jun 2010 06:07:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mxs.selfmail.ru (unknown [77.221.143.26]) by mail.postgresql.org (Postfix) with ESMTP id 5E1E46322ED for ; Fri, 4 Jun 2010 03:07:18 -0300 (ADT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selfip.ru; s=dk; h=Content-Transfer-Encoding:Mime-Version:Message-ID:Date:Content-Type:References:In-Reply-To:Cc:To:Reply-To:From:Subject; bh=gfPDsdvcPykQpkgxob2DRA7xDpYYm0j6q7dhEd/sVIA=; b=nAJqGi3xuZnkjtLjXISAl/M8p2xyS3tWy+gS0kLFzY5PUD27eCvA2a2J+83Lue+pqgKZ0alPn6JIaPeuGLKG1XSL0CTiA/5Q35TF/S68drne1b3CwxVdn6GuCsYFTuBw; X-ACL-SPF: Received: from [UNAVAILABLE] ([217.170.84.182]:43357 helo=[192.168.1.101]) by mxs.selfmail.ru with esmtpa (Exim 4.72) (envelope-from ) id 1OKQ3n-0005JY-27; Fri, 04 Jun 2010 10:07:15 +0400 Subject: Re: graceful reload From: Vasiliy G Tolstov Reply-To: v.tolstov@selfip.ru To: Greg Smith Cc: Shoaib Mir , Anh Ky Huynh , PostgreSQL Admin In-Reply-To: <4C07E137.1070400@2ndquadrant.com> 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> <4C07E137.1070400@2ndquadrant.com> Content-Type: text/plain; charset="UTF-8" Organization: Selfip.Ru Date: Fri, 04 Jun 2010 10:07:12 +0400 Message-ID: <1275631632.28777.0.camel@work.selfip.ru> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.792 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201006/43 X-Sequence-Number: 34821 В Чтв, 03/06/2010 в 13:07 -0400, Greg Smith пишет: > 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. > Ok, Thank You very much! This is really helpful. -- Vasiliy G Tolstov Selfip.Ru