pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Klatt <lists.tcimk@olympus.net>
To: pgsql-admin@postgresql.org
Subject: Recovery using Online Backup+WAL and broken passwords
Date: Fri, 04 Feb 2005 08:26:49 -0800
Message-ID: <4203A249.1010409@olympus.net> (raw)

PostgreSQL 8.0.1
Linux FC2, 2.6.8

Hi,

I'm very new to PostgreSQL.  I've been the admin of several MySQL 
servers for years, but for various reasons we're switching to PostgreSQL.

I love the online backup feature, but I'm encountering a problem with 
users restored from WAL files.  It seems that after a restore, the 
password for any user created since the base backup is broken.

This is what I've done:

created a base backup (using online backup)
created some users
stopped postgresql
restored postgresql from base backup (and added recovery.conf)
started postgresql

The logs indicate that everything went great.  The archived and 
unarchived WAL files are restored/used and the database backup is 
brought up-to-date.

The users exist in the system, but their passwords are broken.  If I 
used "ALTER USER" to reset the password then I can access the database ok.

I'm using md5 as the default encryption. I've tried crypt and that 
doesn't work either. It doesn't seem to matter whether I use ENCRYPTED 
or UNENCRYPTED when created the users.

So....is there something in the way users are created from WAL files 
that doesn't properly restore passwords?  Has anyone else ecountered 
this problem?

Thanks!

Michael



view thread (5+ messages)  latest in thread

Message-ID: <4203A249.1010409@olympus.net>
Permalink:  ../4203A249.1010409@olympus.net/
Also on:    postgresql.org/message-id/4203A249.1010409@olympus.net

 · 

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: lists.tcimk@olympus.net
  Subject: Re: Recovery using Online Backup+WAL and broken passwords
  In-Reply-To: <4203A249.1010409@olympus.net>
  References: <4203A249.1010409@olympus.net>

* 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