slow result - Mailing list pgsql-performance

From Laurent Manchon
Subject slow result
Date
Msg-id 5.0.2.1.2.20070123113422.00d189e8@pop.univ-montp2.fr
Whole thread Raw
Responses Re: slow result  ("Heiko W.Rupp" <heiko.rupp@redhat.com>)
Re: slow result  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Re: slow result  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Re: slow result  (Bill Moran <wmoran@collaborativefusion.com>)
Re: slow result  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-performance
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


My PostgreSQL Conf is
*********************
log_connections = yes
syslog = 2
effective_cache_size = 50000
sort_mem = 10000
max_connections = 200
shared_buffers = 3000
vacuum_mem = 32000
wal_buffers = 8
max_fsm_pages = 2000
max_fsm_relations = 100

Can you tell me is there a way to enhence performance ?

Thank you




+-----------------------------------------------------+
| Laurent Manchon                                     |
| Email: lmanchon@univ-montp2.fr                     |
+-----------------------------------------------------+

pgsql-performance by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: Table Inheritence and Partioning
Next
From: "Heiko W.Rupp"
Date:
Subject: Re: slow result