From: Alfred Perlstein <bright@wintelcom.net>
To: Jean-Arthur Silve <jeanarthur@eurovox.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Slow access with PG 7.0
Date: Wed, 6 Dec 2000 01:25:24 -0800
Message-ID: <20001206012523.V8051@fw.wintelcom.net> (raw)
In-Reply-To: <4.3.0.20001206095503.00e17ea0@mail.eurovox.fr>
References: <4.3.0.20001206095503.00e17ea0@mail.eurovox.fr>
* Jean-Arthur Silve <jeanarthur@eurovox.fr> [001206 01:10] wrote:
> Hello,
>
> I have a problem :
> it seems that when a script access to a db for a SELECT (or table i don't
> really know), postgres locks the db or table and other scripts cannot
> access to this DB concurrently.
> So it's very very slow when this script (a PHP4 script) is called by
> several users...
> it's so slow that even keyboard is slow !
>
> My tables are not so large (about 500 records)
>
> I don't use "Begin" and "Commit"
>
> PG Version is 7.0, with SCSI HD with Adaptec 2940U2W card , on PIII 500 .
>
> I used to utilize these same scripts on another server with postgres 6.4
> (on Celeron 300), and there was no such problem, it was really faster !!
1) when was the last time you ran "vacuum verbose analyze <tablename>" ?
2) do you have indecies on this table?
3) have you tried this: pg_exec($dbh, "set enable seqscan off;"); (*)
4) how can you expect help without going into a bit more detail about
how your table is set up and what the actuall query is?
(*) not sure on the syntax for that one, check the manual.
--
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bright@wintelcom.net, jeanarthur@eurovox.fr
Subject: Re: Slow access with PG 7.0
In-Reply-To: <20001206012523.V8051@fw.wintelcom.net>
References: <4.3.0.20001206095503.00e17ea0@mail.eurovox.fr> <20001206012523.V8051@fw.wintelcom.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox