From: Vasiliy G Tolstov <v.tolstov@selfip.ru>
To: Anh Ky Huynh <xkyanh@gmail.com>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: graceful reload
Date: Thu, 03 Jun 2010 11:48:23 +0400
Message-ID: <1275551303.23110.1.camel@work.selfip.ru> (raw)
In-Reply-To: <20100603144528.2234301e@icy.localdomain>
References: <1275546216.6693.2.camel@work.selfip.ru>
<20100603144528.2234301e@icy.localdomain>
В Чтв, 03/06/2010 в 14:45 +0700, Anh Ky Huynh пишет:
> 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,
>
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 <v.tolstov@selfip.ru>
Selfip.Ru
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: v.tolstov@selfip.ru, xkyanh@gmail.com
Subject: Re: graceful reload
In-Reply-To: <1275551303.23110.1.camel@work.selfip.ru>
* 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