Re: Recovery using Online Backup+WAL and broken passwords

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Klatt <lists(dot)tcimk(at)olympus(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Recovery using Online Backup+WAL and broken passwords
Date: 2005-02-04 17:04:18
Message-ID: 15237.1107536658@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Klatt <lists(dot)tcimk(at)olympus(dot)net> writes:
> 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.

[ thinks about that... ] Hmm, you're right, there is no mechanism to
cause the flat password file to be rebuilt after a restore. So newly
created users won't be in it (and for that matter it won't reflect
post-backup password changes for existing users). Just (re)assign any
one user's password and things should be ok.

Now that I think about it, this problem exists for ordinary crash
recovery from WAL as well. We probably ought to just forcibly rebuild
the flat file at conclusion of any recovery. Odd that it hadn't been
noticed already.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-02-04 17:08:25 Re: Downlevel database
Previous Message Gary Jackson 2005-02-04 16:48:00 Downlevel database