Re: [GENERAL] users in Postgresql - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: [GENERAL] users in Postgresql
Date
Msg-id Pine.GSO.4.02A.9911021830420.19808-100000@Hermelin.DoCS.UU.SE
Whole thread Raw
In response to Re: [GENERAL] users in Postgresql  (postgres@taifun.interface-business.de)
Responses Re: [GENERAL] users in Postgresql  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-general
May Tom (or anyone) correct me if I'm wrong, but I think this is what's
going on:

The contents of the pg_shadow table are written through to a file on disk
called pg_pwd, so all the backends can easily access it. However, this
write through is not automatic. The create user and alter user commands
take care of that, but if you update pg_shadow directly, your changes will
not be seen by currently active backends.

    -Peter

On Tue, 2 Nov 1999 postgres@taifun.interface-business.de wrote:

> > Btw., although direct UPDATEs to pg_shadow will seemingly succeed, you do
> > not want to do that. That's a bug.
>
> Peter, would you explain your statement please!
>
> Why somebody is able to UPDATE pg_shadow to create an user if that's a bug?
> And _why_ that's a bug?
>
> Gerald
>
>

--
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


pgsql-general by date:

Previous
From: postgres@taifun.interface-business.de
Date:
Subject: Re: [GENERAL] users in Postgresql
Next
From: Oleg Broytmann
Date:
Subject: Postgres database on RAM disk - the article in LinuxFocus