Re: performance difference in count(1) vs. count(*)?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: performance difference in count(1) vs. count(*)?
Дата
Msg-id 11471.1027875769@sss.pgh.pa.us
обсуждение исходный текст
Ответ на performance difference in count(1) vs. count(*)?  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-sql
Markus Bertheau <twanger@bluetwanger.de> writes:
> is there a difference performance-wise between select count(1) and
> select count(*)?

Nope.  In fact, the latter is converted to the former during parsing.
        regards, tom lane


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

Предыдущее
От: Markus Bertheau
Дата:
Сообщение: performance difference in count(1) vs. count(*)?
Следующее
От: Josh Berkus
Дата:
Сообщение: Abbr. for TIMESTAMP WITHOUT TIME ZONE?