Обсуждение: pg_user pg_shadow out of sync

Поиск
Список
Период
Сортировка

pg_user pg_shadow out of sync

От
"Sandy Spence"
Дата:
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

От
Michael Fuhr
Дата:
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

От
Tom Lane
Дата:
"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