Unix Technical Forum

Re: Remote administration functionality

This is a discussion on Re: Remote administration functionality within the pgsql Hackers forums, part of the PostgreSQL category; --> > > > > I fail to see how this is better than just editing the > > > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 06:05 AM
Magnus Hagander
 
Posts: n/a
Default Re: Remote administration functionality


> > > > I fail to see how this is better than just editing the
> > > file. Because
> > > > it basically *is* a file editing function limited to

> pg_hba.conf.
> > > > Perhaps what we need is a file reader/writer that is
> > > hardcoded to the
> > > > pg_hba.conf file?
> > >
> > > It allows remote administration, and by using columns for the
> > > pg_hba.conf lines (except for comments), we are making it

> somewhat
> > > easier.

> >
> > I fail to see a real use-case for somebody editing pg_hba.conf *by
> > hand* using this. I can see it happening through a tool like
> > phppgadmin or pgadmin, in which case this will actually

> make it *harder* to implement.
>
> Uh, not sure why it would be harder. What system would be easier?
> Sure, file I/O works, but you can't even try to do that from psql.


Doing it from psql is the part I fail to see a real use-case for. The
people who would use psql for it would probably just use vi or emacs or
sed or whatever on the file itself.
If you needed to do it remotely, you could just call pqsl once to get
the data out to a local file, edit that file, and then call it again to
put it back on the server, no?

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 06:09 AM
Bruce Momjian
 
Posts: n/a
Default Re: Remote administration functionality

Magnus Hagander wrote:
>
> > > > > I fail to see how this is better than just editing the
> > > > file. Because
> > > > > it basically *is* a file editing function limited to

> > pg_hba.conf.
> > > > > Perhaps what we need is a file reader/writer that is
> > > > hardcoded to the
> > > > > pg_hba.conf file?
> > > >
> > > > It allows remote administration, and by using columns for the
> > > > pg_hba.conf lines (except for comments), we are making it

> > somewhat
> > > > easier.
> > >
> > > I fail to see a real use-case for somebody editing pg_hba.conf *by
> > > hand* using this. I can see it happening through a tool like
> > > phppgadmin or pgadmin, in which case this will actually

> > make it *harder* to implement.
> >
> > Uh, not sure why it would be harder. What system would be easier?
> > Sure, file I/O works, but you can't even try to do that from psql.

>
> Doing it from psql is the part I fail to see a real use-case for. The
> people who would use psql for it would probably just use vi or emacs or
> sed or whatever on the file itself.
> If you needed to do it remotely, you could just call pqsl once to get
> the data out to a local file, edit that file, and then call it again to
> put it back on the server, no?


I don't think the proposed read/write API would allow client-side files
to be written to the server, or at least I didn't see that API in there.

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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com