Re: [HACKERS] entries in pg_shadow - Mailing list pgsql-sql

From Tom Lane
Subject Re: [HACKERS] entries in pg_shadow
Date
Msg-id 9799.935888446@sss.pgh.pa.us
Whole thread Raw
In response to entries in pg_shadow  (Michael Richards <miker@scifair.acadiau.ca>)
List pgsql-sql
Michael Richards <miker@scifair.acadiau.ca> writes:
> The entries entered in pg_shadow haven't ever worked for me. I've tried a
> number of times without success. If I update a user in there and set a
> password for them:

IIRC, the only way to set a password that actually works is ALTER USER.

The reason direct SQL hacking on pg_shadow doesn't work is that
pg_shadow isn't what the postmaster looks at (the PM itself can't do
database operations without getting into possible deadlock situations).
There's a flat text file somewhere that contains the Real Info.  ALTER
USER and friends know to rewrite the flat file after updating pg_shadow.

This is documented somewhere, I think, but not nearly prominently
enough...
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] indexes using datetime
Next
From: "Dipl.-Ing. Thomas Schallar"
Date:
Subject: SELECT multiple tables with same fields