pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: lists@itech7.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Backups
Date: Sat, 20 Feb 2010 20:06:30 -0600
Message-ID: <4B8040C6020000250002F42D@gw.wicourts.gov> (raw)

Nilesh Govindarajan  wrote:
 
> I can prevent the changes to the database when the
> backup is going on, but how do I grant the permissions ? I don't
> want to key in the password for the superuser in the script.
 
There are so many ways to deal with that that it's hard to make a
suggestion without knowing more.  You could just use CREATE USER and
GRANT to set things up, you could use trust authentication in the
pg_hba.conf to grant a database superuser permission from a secure
machine, or you could use a pgpass file.  (Check the documentation
for details.)  If I got creative I could probably come up with more,
but I'm shooting in the dark here.
 
-Kevin



view thread (19+ messages)  latest in thread

Message-ID: <4B8040C6020000250002F42D@gw.wicourts.gov>
Permalink:  ../4B8040C6020000250002F42D@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4B8040C6020000250002F42D@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, lists@itech7.com
  Subject: Re: Backups
  In-Reply-To: <4B8040C6020000250002F42D@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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