Re: ALTER USER

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ALTER USER
Дата
Msg-id 21137.1047836185@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ALTER USER  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: ALTER USER  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: ALTER USER  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> It may be worth while to change the default for valuntil to be
> 'infinity'.  NULL implies they will expire, we're just not sure when.

This is not the only place in the system catalogs where NULL is
effectively used to mean a default value that could also be spelled
out explicitly.  (ACLs behave that way, and useconfig/datconfig
do too IIRC.)

It's a bit of a hack, but it saves table space and backend code ---
without this convention the default would have to be inserted "manually"
since we have no mechanism to supply defaults when C code is forming a
new catalog tuple.

I'm inclined to leave the code alone.  But Alvaro is right that it'd be
good to point out the 'infinity' option in the CREATE USER and ALTER
USER man pages.  (Doc patch please?)
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: ALTER USER
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] Upgrading the backend's error-message infrastructure