Re: BUG #6669: unique index w/ multiple columns and NULLs

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #6669: unique index w/ multiple columns and NULLs
Дата
Msg-id 4FCC8E020200002500048003@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: BUG #6669: unique index w/ multiple columns and NULLs  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: BUG #6669: unique index w/ multiple columns and NULLs  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
Bruce Momjian <bruce@momjian.us> wrote:

> COUNT(*) can't skip nulls because there is no specified column,
> but why does COUNT(col) skip nulls --- again, inconsistent.

I disagree -- one is counting rows, the other is counting rows with
a value in that column.  I guess one could criticize the syntax for
specifying that as non-obvious, but it seems pretty reasonable to
me.

-Kevin

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #6669: unique index w/ multiple columns and NULLs
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #6669: unique index w/ multiple columns and NULLs