Re: Postgresql.conf - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Postgresql.conf
Date
Msg-id b42b73150701231115u147c0b90kf65d92613f7800f2@mail.gmail.com
Whole thread Raw
In response to Postgresql.conf  (Laurent Manchon <lmanchon@univ-montp2.fr>)
List pgsql-general
On 1/23/07, Laurent Manchon <lmanchon@univ-montp2.fr> wrote:
>  Hi,
>
>  I have a slow response of my PostgreSQL database 7.4 using this query below
>  on a table with 800000 rows:
>
>  select count(*)from tbl;
>
>  PostgreSQL return result in 28 sec every time.
>  although MS-SQL return result in 0.02 sec every time.
>
>  My server is a DELL PowerEdge 2600 with bi-processor Xeon at 3.2 Ghz
>  with 3GBytes RAM

if you need a fast approximate answer (up to date as of last analyze),
you can do something like:

select reltuples from pg_class where relname = 'tbl' and relkind = 'r';

if you need a fast exact answer, you need to write a trigger.

merlin

pgsql-general by date:

Previous
From: "Jeremy Haile"
Date:
Subject: Re: Postgresql.conf
Next
From: "Brusser, Michael"
Date:
Subject: IPC resource managements on Solaris 10