No title

Started by Laurent Manchonabout 19 years ago2 messagesgeneral
Jump to latest
#1Laurent Manchon
lmanchon@univ-montp2.fr

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 increase performance ?

Thank you

+-----------------------------------------------------+
| Laurent Manchon                                     |
| Email: lmanchon@univ-montp2.fr                     |
+-----------------------------------------------------+
#2Chad Wagner
chad.wagner@gmail.com
In reply to: Laurent Manchon (#1)
Re:

On 1/22/07, Laurent Manchon <lmanchon@univ-montp2.fr> wrote:

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.

Here is a few links discussing the issue:

http://sql-info.de/postgresql/postgres-gotchas.html#1_7
http://archives.postgresql.org/pgsql-hackers/2005-01/msg00247.php

--
Chad
http://www.postgresqlforums.com/