Re: [GENERAL] users in Postgresql

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: gerald(at)interface-business(dot)de, pgsql-general <pgsql-general(at)postgreSQL(dot)org>, Carlos Vicente Altamirano <altacar(at)redes(dot)unam(dot)mx>, Charles Tassell <ctassell(at)isn(dot)net>
Subject: Re: [GENERAL] users in Postgresql
Date: 1999-11-02 18:21:35
Message-ID: 199911021821.NAA13306@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> 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.

Your changes never get to the file, ever, not just current backends.

CREATE USER sql command updates the file, but an UPDATE on pg_shadow
does not.

We use a file because the postmaster does the password authentication,
and we don't have any database connection the postmaster.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Robin 1999-11-02 18:28:30 constraints regression fails
Previous Message Peter Eisentraut 1999-11-02 18:11:43 Re: [GENERAL] Postgres database on RAM disk - the article in LinuxFocus

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 1999-11-02 18:24:04 Re: [HACKERS] 6.5.3 is ready
Previous Message Oleg Bartunov 1999-11-02 18:13:42 Re: [HACKERS] file descriptors leak?