Re: postgres hab modification without restarting

Lists: pgsql-admin
From: Hornyak Laszlo <kocka(at)tigrasoft(dot)hu>
To: pgsql-admin(at)postgresql(dot)org
Subject: postgres hab modification without restarting
Date: 2003-08-25 13:15:44
Message-ID: Pine.LNX.4.21.0308251511150.19061-100000@tiger.tigrasoft.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi all!

Is it possible to make the postmaster re-read the pg_hba.conf when needed
without pg_ctl restarting the database? I think I could send a unix signal
to it, it would simly re-read the file and apply the information for new
incoming connection requests.
I was looking for this info in the documentation and lists but I did not
find anything.

Thanks,
Laszlo


From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Hornyak Laszlo <kocka(at)tigrasoft(dot)hu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres hab modification without restarting
Date: 2003-08-25 13:35:15
Message-ID: 1061818515.3390.219.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

On Mon, 2003-08-25 at 09:15, Hornyak Laszlo wrote:
> Hi all!
>
> Is it possible to make the postmaster re-read the pg_hba.conf when needed
> without pg_ctl restarting the database? I think I could send a unix signal
> to it, it would simly re-read the file and apply the information for new
> incoming connection requests.
> I was looking for this info in the documentation and lists but I did not
> find anything.
>

pg_ctl reload sends the signal to reread the config files
http://www.postgresql.org/docs/7.3/interactive/app-pg-ctl.html

some parameters can only be set at server start
http://www.postgresql.org/docs/7.3/interactive/runtime-config.html

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Hornyak Laszlo <kocka(at)tigrasoft(dot)hu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres hab modification without restarting
Date: 2003-08-27 03:40:05
Message-ID: 200308270340.h7R3e5h26511@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Robert Treat wrote:
> On Mon, 2003-08-25 at 09:15, Hornyak Laszlo wrote:
> > Hi all!
> >
> > Is it possible to make the postmaster re-read the pg_hba.conf when needed
> > without pg_ctl restarting the database? I think I could send a unix signal
> > to it, it would simly re-read the file and apply the information for new
> > incoming connection requests.
> > I was looking for this info in the documentation and lists but I did not
> > find anything.
> >
>
> pg_ctl reload sends the signal to reread the config files
> http://www.postgresql.org/docs/7.3/interactive/app-pg-ctl.html
>
> some parameters can only be set at server start
> http://www.postgresql.org/docs/7.3/interactive/runtime-config.html

I think the 'postgres' manual page explains the actual signals used.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Hornyak Laszlo <kocka(at)tigrasoft(dot)hu>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres hab modification without restarting
Date: 2003-08-27 10:48:42
Message-ID: Pine.LNX.4.21.0308271231380.3013-100000@tiger.tigrasoft.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin


Ok, I know this was an RTFM category question, I just didn`t find the
information, but I promiss I will learn more about the proper use of the
unix command 'grep', so next time I will find it easily :)

I was looking for a `crontab -e`-like editing. It lets edit the file,
checks the format, and installs if changed, doesn`t let user make
failure - for example to forget sending the signal, or writing bad
formated pg_hba.conf. Is there something like that?

Laci

On Tue, 26 Aug 2003, Bruce Momjian wrote:

> Robert Treat wrote:
> > On Mon, 2003-08-25 at 09:15, Hornyak Laszlo wrote:
> > > Hi all!
> > >
> > > Is it possible to make the postmaster re-read the pg_hba.conf when needed
> > > without pg_ctl restarting the database? I think I could send a unix signal
> > > to it, it would simly re-read the file and apply the information for new
> > > incoming connection requests.
> > > I was looking for this info in the documentation and lists but I did not
> > > find anything.
> > >
> >
> > pg_ctl reload sends the signal to reread the config files
> > http://www.postgresql.org/docs/7.3/interactive/app-pg-ctl.html
> >
> > some parameters can only be set at server start
> > http://www.postgresql.org/docs/7.3/interactive/runtime-config.html
>
> I think the 'postgres' manual page explains the actual signals used.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hornyak Laszlo <kocka(at)tigrasoft(dot)hu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres hab modification without restarting
Date: 2003-08-27 14:38:02
Message-ID: 200308271438.h7REc2M25083@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hornyak Laszlo wrote:
>
> Ok, I know this was an RTFM category question, I just didn`t find the
> information, but I promiss I will learn more about the proper use of the
> unix command 'grep', so next time I will find it easily :)
>
> I was looking for a `crontab -e`-like editing. It lets edit the file,
> checks the format, and installs if changed, doesn`t let user make
> failure - for example to forget sending the signal, or writing bad
> formated pg_hba.conf. Is there something like that?

No.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073