Re: Query performance problem

Поиск
Список
Период
Сортировка
От Ragnar Hafstað
Тема Re: Query performance problem
Дата
Msg-id 1111131172.25405.17.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Query performance problem  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
Ответы Re: Query performance problem  (PFC <lists@boutiquenumerique.com>)
Список pgsql-sql
On Fri, 2005-03-18 at 10:49 +0530, Kenneth Gonsalves wrote:
> On Thursday 17 Mar 2005 7:35 pm, Richard Huxton wrote:
> 
> > Not necessarily. NOT NULL here helps to ensure you can add values
> > together without the risk of a null result. There are plenty of
> > "amount" columns that should be not-null (total spent, total
> > ordered etc).
> 
> that makes sense - but is it necessary to have a not null constraint 
> when there is a default value?

DEFAULT applies to INSERTs, NOT NULL applies to UPDATEs too.

gnari




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

Предыдущее
От: Kenneth Gonsalves
Дата:
Сообщение: Re: Query performance problem
Следующее
От: PFC
Дата:
Сообщение: Re: Query performance problem