What does count(*) count?

Поиск
Список
Период
Сортировка
От Együd Csaba
Тема What does count(*) count?
Дата
Msg-id 001001c3cf7c$41256550$230a0a0a@compaq
обсуждение исходный текст
Ответы Re: What does count(*) count?
Список pgsql-general
Hi all,
I tried to dump out a single table and just for a verification I counted the
number of 'INERT INTO' rows.
I found that count(*) results less rows than grep.
*******************

Csaba@compaq ~
$ pg_dump -d -t t_stockchanges alumil6 > sc.dump

*******************

alumil6=# select count(*) from t_stockchanges ;
 count
-------
  9816
(1 row)

*******************

Csaba@compaq ~
$ cat sc.dump | grep 'INSERT INTO' | wc -l
   4908

*******************
What can be the reason of it?

Thx,

-- Csaba


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

Предыдущее
От: Tony
Дата:
Сообщение: Re: Is my MySQL Gaining ?
Следующее
От: Bret Busby
Дата:
Сообщение: Re: Is my MySQL Gaining ?