Re: [GENERAL] users in Postgresql

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] users in Postgresql
Дата
Msg-id 199911021821.NAA13306@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] users in Postgresql  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Ответы Re: [GENERAL] users in Postgresql  (postgres@taifun.interface-business.de)
Список 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.

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@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-general по дате отправления:

Предыдущее
От: Patrick Robin
Дата:
Сообщение: constraints regression fails
Следующее
От: zris@somewhere.com (zris)
Дата:
Сообщение: Re: PostgreSQL