From: Anh Ky Huynh <xkyanh@gmail.com>
To: v.tolstov@selfip.ru
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: graceful reload
Date: Thu, 3 Jun 2010 14:45:28 +0700
Message-ID: <20100603144528.2234301e@icy.localdomain> (raw)
In-Reply-To: <1275546216.6693.2.camel@work.selfip.ru>
References: <1275546216.6693.2.camel@work.selfip.ru>
On Thu, 03 Jun 2010 10:23:36 +0400
Vasiliy G Tolstov <v.tolstov@selfip.ru> 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,
--
Anh Ky Huynh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: xkyanh@gmail.com, v.tolstov@selfip.ru
Subject: Re: graceful reload
In-Reply-To: <20100603144528.2234301e@icy.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox