pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedchanges to postgresql.conf
4+ messages / 3 participants
[nested] [flat]
* changes to postgresql.conf
@ 2012-09-24 13:05 Johnny Tan <johnnydtan@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Johnny Tan @ 2012-09-24 13:05 UTC (permalink / raw)
To: pgsql-admin
I need to make changes to these settings in postgresql.conf:
* effective_cache_size
* shared_buffers
* work_mem
* maintenance_work_mem
On a live, production server, can I simply do a "reload" and get those
values in, or do I need to do a stop/start?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: changes to postgresql.conf
@ 2012-09-24 13:20 Magnus Hagander <magnus@hagander.net>
parent: Johnny Tan <johnnydtan@gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Magnus Hagander @ 2012-09-24 13:20 UTC (permalink / raw)
To: Johnny Tan <johnnydtan@gmail.com>; +Cc: pgsql-admin
On Mon, Sep 24, 2012 at 3:05 PM, Johnny Tan <johnnydtan@gmail.com> wrote:
> I need to make changes to these settings in postgresql.conf:
> * effective_cache_size
> * shared_buffers
> * work_mem
> * maintenance_work_mem
>
> On a live, production server, can I simply do a "reload" and get those
> values in, or do I need to do a stop/start?
For shared_buffers, you need a stop/start. For the other three, a
reload is enough.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: changes to postgresql.conf
@ 2012-09-24 13:32 Johnny Tan <johnnydtan@gmail.com>
parent: Magnus Hagander <magnus@hagander.net>
0 siblings, 0 replies; 4+ messages in thread
From: Johnny Tan @ 2012-09-24 13:32 UTC (permalink / raw)
To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-admin
On Sep 24, 2012 9:20 AM, "Magnus Hagander" <magnus@hagander.net> wrote:
>
> For shared_buffers, you need a stop/start. For the other three, a
> reload is enough.
Thank you.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: changes to postgresql.conf
@ 2012-09-24 17:34 Steve Crawford <scrawford@pinpointresearch.com>
parent: Johnny Tan <johnnydtan@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Steve Crawford @ 2012-09-24 17:34 UTC (permalink / raw)
To: Johnny Tan <johnnydtan@gmail.com>; +Cc: pgsql-admin
On 09/24/2012 06:05 AM, Johnny Tan wrote:
> I need to make changes to these settings in postgresql.conf:
> * effective_cache_size
> * shared_buffers
> * work_mem
> * maintenance_work_mem
>
> On a live, production server, can I simply do a "reload" and get those
> values in, or do I need to do a stop/start?
>
>
To expand on other responses, try "select * from pg_settings;" and see
http://www.postgresql.org/docs/current/static/view-pg-settings.html
Anything with a "context" of "postmaster" requires a restart so while
shared_buffers requires a restart the other three do not and, in fact,
can be set by a user on a per-connection basis.
Cheers,
Steve
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-09-24 17:34 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 13:05 changes to postgresql.conf Johnny Tan <johnnydtan@gmail.com>
2012-09-24 13:20 ` Magnus Hagander <magnus@hagander.net>
2012-09-24 13:32 ` Johnny Tan <johnnydtan@gmail.com>
2012-09-24 17:34 ` Steve Crawford <scrawford@pinpointresearch.com>
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