Received: from mars.eurovox.fr (mars.eurovox.fr [195.68.105.194]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eB6CtVt14323 for ; Wed, 6 Dec 2000 07:55:31 -0500 (EST) (envelope-from jeanarthur@eurovox.fr) Received: from venus.eurovox.fr ([195.68.105.195]) by mars.eurovox.fr (8.8.7/8.8.7) with ESMTP id OAA10762; Wed, 6 Dec 2000 14:51:51 +0100 Message-Id: <4.3.0.20001206135408.00b0ace0@mail.eurovox.fr> X-Sender: jeanarthur@mail.eurovox.fr X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Wed, 06 Dec 2000 13:55:39 +0100 To: Alfred Perlstein From: Jean-Arthur Silve Subject: Re: Slow access with PG 7.0 Cc: pgsql-admin@postgresql.org In-Reply-To: <20001206012523.V8051@fw.wintelcom.net> References: <4.3.0.20001206095503.00e17ea0@mail.eurovox.fr> <4.3.0.20001206095503.00e17ea0@mail.eurovox.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200012/34 X-Sequence-Number: 226 Thanks for your help pg_exec($dbh, "set enable_seqscan off;"); seems resolve my problem... I look at the docs, but I didn't understand very well what is the use of this variable ? thank you ! jean-arthur At 01:25 06/12/00 -0800, Alfred Perlstein wrote: >* Jean-Arthur Silve [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 " ? >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." ---------------------------------------------------------------- Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.