pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Sayer <nsayer@quack.kfu.com>
To: pgsql-admin@postgresql.org
Subject: Re: URGENT: undoing a mistake
Date: Thu, 31 Oct 2002 10:18:39 -0800
Message-ID: <3DC173FF.8050107@kfu.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0210310746030.3169-100000@perrin.socsci.unc.edu>
References: <Pine.LNX.4.21.0210310746030.3169-100000@perrin.socsci.unc.edu>

Andrew Perrin wrote:

>- Do a formal backup more often
>
>  
>
For what it's worth, the FreeBSD "port" 
(http://cvsweb.freebsd.org/ports/databases/postgresql7/) for PostgreSQL 
contains a most excellent daily maintenance script (as written it's a 
FreeBSD "periodic" script, but it's more or less suitable to be a cron 
job). It does a pg_dump of all the databases (with blobs, as a -Fc) and 
vacuums all the tables.

The one thing it doesn't do is a pg_dumpall -g (to save the users and 
groups), but I told the author this and he promises to include it in the 
next version.

On a less topical note, there was much rejoicing concerning the ability 
(in 7.2) to use ident authentication on unix domain socket connections. 
I have a machine with untrusted (unix) users on it. This made backing up 
painful, because a password was needed. But now, pg_hba.conf simply has

local    all    ident admin

as the last line, and pg_ident.conf has

admin    pgsql    pgsql

Thus, unix user pgsql can connect to any database as db user pgsql 
without a password. Before I upgraded, I had to use

local    all    password pg_suser

with a pg_suser file with pgsql and an encrypted password, then set 
PGPASSWORD in my backup scripts (not the most secure thing to do).





view thread (6+ messages)  latest in thread

Message-ID: <3DC173FF.8050107@kfu.com>
Permalink:  ../3DC173FF.8050107@kfu.com/
Also on:    postgresql.org/message-id/3DC173FF.8050107@kfu.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nsayer@quack.kfu.com
  Subject: Re: URGENT: undoing a mistake
  In-Reply-To: <3DC173FF.8050107@kfu.com>
  References: <Pine.LNX.4.21.0210310746030.3169-100000@perrin.socsci.unc.edu> <3DC173FF.8050107@kfu.com>

* 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