Re: Question about NOT NULL and default values.

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Question about NOT NULL and default values.
Дата
Msg-id 20081016205456.X48826@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Question about NOT NULL and default values.  ("Tim Uckun" <timuckun@gmail.com>)
Ответы Re: Question about NOT NULL and default values.  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
On Fri, 17 Oct 2008, Tim Uckun wrote:

> Is there a way to change this behavior so that an attempt to set the
> column to NULL will result in the default value being put in the
> field?

I don't think so specifically with default, but you could use a before
trigger instead that would put in a value in the new row if NULL was
given.

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

Предыдущее
От: "Tim Uckun"
Дата:
Сообщение: Re: Question about NOT NULL and default values.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Question about fulltext search and to_tsvector function