Re: Starting / Stopping Postgres Database

From: "Sean Davis" <sdavis2(at)mail(dot)nih(dot)gov>
To: "Marc Abbott" <MarcA(at)medscheme(dot)co(dot)za>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Starting / Stopping Postgres Database
Date: 2008-09-26 11:17:56
Message-ID: 264855a00809260417l5489b998wbe615ce5e1c22cf6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Sep 26, 2008 at 12:40 AM, Marc Abbott <MarcA(at)medscheme(dot)co(dot)za> wrote:
> I need to allow sysadmins to start and stop the database through a front-end
> application but I do not want to use the postgres user. Is there a privilege
> I can grant to a current role they already have access to? Or is there some
> sort of config that needs to be done in the config files to allow this? We
> will only allow these commands to be executed by certain Ip addresses to
> keep it as secure as possible.

I think there might be some confusion, either on my part or yours.
You cannot shutdown the server remotely and roles created in the
database or in configuration files have nothing to do with shutting
down the database. The sysadmins need to login to the machine (not
the database, but the actual machine) that hosts the database and
issue one of a couple of commands at the command line. The access to
the machine is granted via normal user accounts on the machine and not
via roles in the database.

For more details, see the help here:

http://www.postgresql.org/docs/8.3/static/app-pg-ctl.html

Sean

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Phil 2008-09-29 01:16:44 absolute novice wanting knowledgeable opinion about front end
Previous Message Marc Abbott 2008-09-26 04:40:40 Starting / Stopping Postgres Database