Re: What does count(*) count?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What does count(*) count?
Дата
Msg-id 10771.1072887997@sss.pgh.pa.us
обсуждение исходный текст
Ответ на What does count(*) count?  (Együd Csaba <csegyud@vnet.hu>)
Ответы Re: What does count(*) count?
Список pgsql-general
=?iso-8859-2?Q?Egy=FCd_Csaba?= <csegyud@vnet.hu> writes:
> I found that count(*) results less rows than grep.

That's a tad hard to believe.  I'm suspecting pilot error of some sort.

Perhaps you have more than one table named t_stockchanges (in different
databases or schemas) and you weren't looking at the same one in both
cases?

Another possibility is that t_stockchanges has child table(s).  Your
SELECT would count rows in the child tables, but I don't think that
pg_dump -t would dump them.

            regards, tom lane

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

Предыдущее
От: Együd Csaba
Дата:
Сообщение: Re: What does count(*) count?
Следующее
От: "Lee Harr"
Дата:
Сообщение: finding my schema (for sequences)