Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Tom Lane
Bruce Momjian writes: > Luke Lonergan wrote: >> Has there been any agreement or a concept for remote reboot? > Reload of config file and rotate log files were part of the original > patch that I will try to apply. I am not sure how remote restart would > work. Remote reboot to change shared_buf

Re: [HACKERS] [COMMITTERS] pgsql: Add GUC variables to control keep-alive

2005-07-31 Thread Andrew - Supernews
On 2005-08-01, Oliver Jowett <[EMAIL PROTECTED]> wrote: > There's no dependency on socket PF mentioned there, and the obvious > reading of that text is that a "level identifier" uniquely identifies > the "protocol controlling the option" -- so IPPROTO_TCP unambiguously > means "the TCP protocol".

Re: [HACKERS] [COMMITTERS] pgsql: Add GUC variables to control keep-alive

2005-07-31 Thread Oliver Jowett
Andrew - Supernews wrote: > On 2005-07-31, Oliver Jowett <[EMAIL PROTECTED]> wrote: > >>I'm not worried about changing values; I think that representing the >>"option level" as an IP protocol number, in an interface that >>encompasses non-IP protocols, is a bad API design decision. > > The interp

Re: [HACKERS] [COMMITTERS] pgsql: Add GUC variables to control keep-alive

2005-07-31 Thread Andrew - Supernews
On 2005-07-31, Oliver Jowett <[EMAIL PROTECTED]> wrote: > I'm not worried about changing values; I think that representing the > "option level" as an IP protocol number, in an interface that > encompasses non-IP protocols, is a bad API design decision. The interpretation of that parameter, if not

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Luke Lonergan
Bruce, On 7/31/05 5:33 PM, "Bruce Momjian" wrote: > Reload of config file and rotate log files were part of the original > patch that I will try to apply. I am not sure how remote restart would > work. Reload of config, refresh of IPC structures should be equivalent. It all sounds very useful

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Bruce Momjian
Dave Page wrote: > > > > -Original Message- From: Bruce Momjian > [mailto:[EMAIL PROTECTED] Sent: Sun 7/31/2005 2:58 PM To: Dave > Page Cc: Tom Lane; Magnus Hagander; PostgreSQL-development Subject: > Re: [HACKERS] Remote administration functionality > > > > I was thinking of a global

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Bruce Momjian
Luke Lonergan wrote: > Bruce, > > On 7/31/05 6:58 AM, "Bruce Momjian" wrote: > > > TODO has: > > > > o Allow pg_hba.conf settings to be controlled via SQL > > > > This would require a new global table that is dumped to flat file > > for > > use by the postmaster. W

[HACKERS] pg_dumpall --clean versus roles and shared dependencies

2005-07-31 Thread Tom Lane
I've been trying to figure out what to do about pg_dumpall's --clean option in view of our recent changes. The problem is that pg_dumpall tries to delete existing users and groups by putting this in its output script: DELETE FROM pg_shadow WHERE usesysid <> (SELECT datdba FROM p

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Dave Page
-Original Message- From: Bruce Momjian [mailto:[EMAIL PROTECTED] Sent: Sun 7/31/2005 2:58 PM To: Dave Page Cc: Tom Lane; Magnus Hagander; PostgreSQL-development Subject: Re: [HACKERS] Remote administration functionality > I was thinking of a global table that can be modified with > IN

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Andrew Dunstan
Dave Page wrote: The best I have come up with is functions similar to: SELECT pg_set_hba_line(20, 'hostssl all all 192.168.1.1/32 md5'); SELECT pg_add_hba_line(19, '# Allow global access for Dave''s test workstation'); SELECT pg_delete_hba_line(24); However, there are a couple of things tha

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Luke Lonergan
Bruce, On 7/31/05 6:58 AM, "Bruce Momjian" wrote: > TODO has: > > o Allow pg_hba.conf settings to be controlled via SQL > > This would require a new global table that is dumped to flat file > for > use by the postmaster. We do a similar thing for pg_shadow > curren

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Bruce Momjian
Dave Page wrote: > > The idea of the patch was to give applications the full unix I/O > > capabilities, allowing them to program these functions into > > administration applications. I think the group generally would like a > > higher-level API that allows something like: > > > > SET GLOBAL l

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Bruce Momjian
Andreas Pflug wrote: > Bruce Momjian wrote: > > o ... > > o recycle log files > > o ... > > > > All these items are on the TODO list already. > > Didn't find this on the TODO, what does it mean? Is it what > pg_logfile_rotate() does since my very first logger subprocess posts? Ye

Re: [HACKERS] [COMMITTERS] pgsql: Add GUC variables to control keep-alive

2005-07-31 Thread Oliver Jowett
Tom Lane wrote: > Oliver Jowett <[EMAIL PROTECTED]> writes: > >>per my linux/socket.h: > > >>>/* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ >>>#define SOL_IP 0 >>>/* #define SOL_ICMP 1 No-no-no! Due to Linux :-) we cannot use >>>SOL_ICMP=1 */ >>>#d

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Andreas Pflug
Bruce Momjian wrote: o ... o recycle log files o ... All these items are on the TODO list already. Didn't find this on the TODO, what does it mean? Is it what pg_logfile_rotate() does since my very first logger subprocess posts? Regards, Andreas --

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Dave Page
-Original Message- From: Bruce Momjian [mailto:[EMAIL PROTECTED] Sent: Sun 7/31/2005 4:39 AM To: Dave Page Cc: Tom Lane; Magnus Hagander; PostgreSQL-development Subject: Remote administration functionality > The idea of the patch was to give applications the full unix I/O > capabiliti

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Andreas Pflug
Bruce Momjian wrote: I think the group generally would like a higher-level API that allows something like: SET GLOBAL log_statement = 'mod'; This is the typical Core point of view. Any function not usable from psql can't be ok. So until psql isn't enabled to SET GLOBAL, the rest of

Re: [HACKERS] Remote administration functionality

2005-07-31 Thread Dave Page
-Original Message- From: [EMAIL PROTECTED] on behalf of Steve Atkins Sent: Sun 7/31/2005 5:35 AM To: PostgreSQL-development Subject: Re: [HACKERS] Remote administration functionality > So, while I can see the attraction of being able to futz with the > database security configuration t

Re: [HACKERS] [COMMITTERS] pgsql: Add GUC variables to control keep-alive

2005-07-31 Thread Tom Lane
Oliver Jowett <[EMAIL PROTECTED]> writes: > per my linux/socket.h: >> /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ >> #define SOL_IP 0 >> /* #define SOL_ICMP 1 No-no-no! Due to Linux :-) we cannot use >> SOL_ICMP=1 */ >> #define SOL_TCP 6 >