pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Richards <miker@scifair.acadiau.ca>
Cc: pgsql-sql@postgreSQL.org
Cc: hackers@postgreSQL.org
Subject: Re: [HACKERS] entries in pg_shadow
Date: Sat, 28 Aug 1999 21:00:46 -0400
Message-ID: <9799.935888446@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.10.9908282128080.33117-100000@scifair.acadiau.ca>

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



view thread (3+ messages)  latest in thread

Message-ID: <9799.935888446@sss.pgh.pa.us>
Permalink:  ../9799.935888446@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9799.935888446@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, miker@scifair.acadiau.ca, hackers@postgreSQL.org
  Subject: Re: [HACKERS] entries in pg_shadow
  In-Reply-To: <9799.935888446@sss.pgh.pa.us>
  References: <Pine.BSF.4.10.9908282128080.33117-100000@scifair.acadiau.ca> <9799.935888446@sss.pgh.pa.us>

* 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