Re: Postgresql.conf

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Postgresql.conf
Дата
Msg-id 20070123153318.GH24927@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: Postgresql.conf  ("Brandon Aiken" <BAiken@winemantech.com>)
Ответы Re: Postgresql.conf  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-general
am  Tue, dem 23.01.2007, um 10:12:13 -0500 mailte Brandon Aiken folgendes:
> Out of curiosity, has the COUNT(*) with no WHERE clause slowness been
> fixed in 8.x?  Or is it still an issue of "there's no solution that
> won't harm aggregates with WHERE clauses"?

I will try it:

scholl=# \timing
Timing is on.
scholl=# select count(1) from bde_meldungen ;
  count
---------
 1813210
(1 row)

Time: 1925.471 ms
scholl=*# select count(1) from bde_meldungen where datum = current_date-'1day'::interval;
 count
-------
  2694
(1 row)

Time: 5.670 ms


Btw: yes, the table has more rows than the table from the origin poster
and the count(1) is much faster. Perhaps he should show us an 'explain
analyse'. My guess: many dead tuples.



Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Installing PostgreSQL under Cpanel
Следующее
От: "Harald Armin Massa"
Дата:
Сообщение: Re: Installing PostgreSQL under Cpanel