Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7AB026322E0 for ; Thu, 3 Jun 2010 04:48:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 10860-04 for ; Thu, 3 Jun 2010 07:48:26 +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 E5EF86321B1 for ; Thu, 3 Jun 2010 04:48:26 -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=sjeTroONosGetzkgTBNiLPsxU4TB7vC3z3/ds47tr5A=; b=Lt8MtSWvcotbzC7/JuethDvOsM7FbGct7HpmbrbSc80JlAVFIhosMwupyJu/2sC1O3OIheEqgtDJxxB9OERTWRPn0APzoagfhs88mZX3usYaAF0v12yqPCoa/CN31Vp7; X-ACL-SPF: Received: from [UNAVAILABLE] ([217.170.84.182]:42864 helo=[192.168.1.101]) by mxs.selfmail.ru with esmtpa (Exim 4.72) (envelope-from ) id 1OK5A8-0005o1-9U; Thu, 03 Jun 2010 11:48:24 +0400 Subject: Re: graceful reload From: Vasiliy G Tolstov Reply-To: v.tolstov@selfip.ru To: Anh Ky Huynh Cc: PostgreSQL Admin In-Reply-To: <20100603144528.2234301e@icy.localdomain> References: <1275546216.6693.2.camel@work.selfip.ru> <20100603144528.2234301e@icy.localdomain> Content-Type: text/plain; charset="UTF-8" Organization: Selfip.Ru Date: Thu, 03 Jun 2010 11:48:23 +0400 Message-ID: <1275551303.23110.1.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_20=-0.001, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201006/26 X-Sequence-Number: 34804 В Чтв, 03/06/2010 в 14:45 +0700, Anh Ky Huynh пишет: > On Thu, 03 Jun 2010 10:23:36 +0400 > Vasiliy G Tolstov wrote: > > > Hello. > > > > I'm use linux and postgresql under xen vps. Vps supports memory > > balloon (i need to increase memory some time). Can postgresql > > server has ability to graceful reload itself after it configuration > > files changed? Thank You. > > I'm afraid *NOT*. You can write a script / cronjob for this task. The script will check postgresql periodically and will restart posgresql daemon in case the configuration was changed. You can use `stat` command (try `stat --help`) to get the right information about file's modifcation. You should *check* if your configuration is valid before restart the daemon as any wrong modification can cause your server to stop :) > > I know there's a tool that will do some tasks whenever a(ny) file in the system has been modified. But I can't remember the name of that tool. > > Regards, > Sorry for incorrect question. I mean: does postgresql can be reloaded without breaking current connections? For example: I need to increate some values in postgresql conf file and want to this valies applied on running server, can i do this without full restart? -- Vasiliy G Tolstov Selfip.Ru