Thread: pg_user pg_shadow out of sync

pg_user pg_shadow out of sync

From
"Sandy Spence"
Date:
Hi All,

Can any one tell me what I need to do to get this back on if I do a select
on pg_user for a particular user and then do a select on users for the same
user the expiry and valuntil columns are different?  How do I get these to
match?

Cheers,

Sandy


Re: pg_user pg_shadow out of sync

From
Michael Fuhr
Date:
On Wed, May 02, 2007 at 11:55:51AM +0100, Sandy Spence wrote:
> Can any one tell me what I need to do to get this back on if I do a select
> on pg_user for a particular user and then do a select on users for the same
> user the expiry and valuntil columns are different?  How do I get these to
> match?

Could you post the exact queries you're running along with the
output?  What version of PostgreSQL are you using?

--
Michael Fuhr

Re: pg_user pg_shadow out of sync

From
Tom Lane
Date:
"Sandy Spence" <axs@aber.ac.uk> writes:
> Can any one tell me what I need to do to get this back on if I do a select
> on pg_user for a particular user and then do a select on users for the same
> user the expiry and valuntil columns are different?  How do I get these to
> match?

It's pretty hard to see how pg_user could vary from pg_shadow, seeing
that the former is just a view of the latter.  But what's this "users"
you mention ... is that just a typo, or some locally installed addition?

            regards, tom lane