Re: [BUGS] SELECT "bug"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] SELECT "bug"?
Дата
Msg-id 9887.948493539@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SELECT "bug"?  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-bugs
The Hermit Hacker <scrappy@hub.org> writes:
> webcounter=> select count(1) from webhit_details_formatted where counter_id = 1;
> [ crash ]

OK, this is a boundary condition that I fixed awhile ago: nodeAgg.c
coredumped if no tuples are selected *and* no attributes are mentioned
in the targetlist.  You can work around it in 6.5.* by writing
count(*) instead of count(1).

We could backpatch this, but I'm not sure it's worth the trouble,
considering the lack of complaints and the simplicity of the workaround.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] SELECT "bug"?
Следующее
От: "Curt Siffert"
Дата:
Сообщение: date('now') returns 12/31/99?