Re: [GENERAL] Unable to reload postgresql.conf without restarting

From: sk baji <baji(dot)dba(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Jose Martinez <jmartinez(at)opencrowd(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [GENERAL] Unable to reload postgresql.conf without restarting
Date: 2013-01-03 17:36:02
Message-ID: CAAYGEJbJrpDu6OVng5ShAHqiF9Cod2w0c2NnAg0793LCex=k3Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

> Hi,
>
> I made some changes to postgresql.conf and I want them to take effect
without
> having to restart the server.
>
> I tried
>
> select pg_reload_conf();
> /usr/pgsql-9.1/bin/pg_ctl reload
>
> but when I do 'show all', I see no changes take effect.
>
> There settings I tried to change are:
> -effective_cache_size
> -work_mem
>
> Im using posgres 9.1 on Centos Linux (amazon ec2)

I think, these parameters are duplicated in postgresql.conf file. Can you
check whether the same parameters are exits in bottom of the file. If so,
you need to change at the bottom(or comment them).

Regards,
Baji Shaik.

On Thu, Jan 3, 2013 at 5:17 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> On Thu, Jan 3, 2013 at 11:25:41AM -0500, Jose Martinez wrote:
> > Hi,
> >
> > I made some changes to postgresql.conf and I want them to take effect
> without
> > having to restart the server.
> >
> > I tried
> >
> > select pg_reload_conf();
> > /usr/pgsql-9.1/bin/pg_ctl reload
> >
> > but when I do 'show all', I see no changes take effect.
> >
> > There settings I tried to change are:
> > -effective_cache_size
> > -work_mem
> >
> > Im using posgres 9.1 on Centos Linux (amazon ec2)
>
> That is quite odd. Can you show us the commands and the postgresql.conf
> line you are changing?
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + It's impossible for everything to be true. +
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2013-01-03 18:02:34 Re: Unable to reload postgresql.conf without restarting
Previous Message Matheus de Oliveira 2013-01-03 17:30:18 Re: Unable to reload postgresql.conf without restarting

Browse pgsql-general by date

  From Date Subject
Next Message Robert Klaus 2013-01-03 17:45:31 Re: Large number of rows in pg_type and slow gui (pgadmin) refresh
Previous Message Thomas Kellerer 2013-01-03 17:30:52 Re: Large number of rows in pg_type and slow gui (pgadmin) refresh