Received: from www1.translationforge ([212.11.36.58]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0NDx5l17810 for ; Wed, 23 Jan 2002 08:59:07 -0500 (EST) (envelope-from jm.poure@freesurf.fr) Received: from there ([192.168.1.102]) by www1.translationforge (8.11.6/8.11.6) with SMTP id g0NDwML18011; Wed, 23 Jan 2002 14:58:26 +0100 Message-Id: <200201231358.g0NDwML18011@www1.translationforge> Content-Type: text/plain; charset="iso-8859-1" From: Jean-Michel POURE Reply-To: jm.poure@freesurf.fr Organization: Translationforge To: "Josh Berkus" , Francisco Reyes Subject: Re: Long running queries and timeouts Date: Wed, 23 Jan 2002 14:58:21 +0100 X-Mailer: KMail [version 1.3.1] Cc: pgsql-php@postgresql.org References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id g0NE2e119293 X-Archive-Number: 200201/64 X-Sequence-Number: 868 Le Mardi 22 Janvier 2002 16:52, Josh Berkus a écrit : > Actually, my web developer and I talked about the programming necessary >  to do this, and decided that it was easier to break up the >  long-running function into 3 smaller functions. Are you connecting from Netscape? I noticed long queries timeouted in Netscape. This is because Nescape waits for the entire content of a page before displaying it. On the converse, when connecting from $M Internet Explorer, just echo a message like "Please wait during processing." and then "." everytime you run a query. IE refreshes content and there is no timeout. Also, it is possible to set timeout time in /etc/php.ini. Set a high value like 600 seconds. Then you also need to allow more connections to PostgreSQL backend as described in this very interesting article : http://www.phpbuilder.com/columns/smith20010821.php3?page=2. PostgreSQL can run very fast when well-optimized. You probably need to optimize the source code of queries themselves, probably writing some good PL/pgSQL server side code. If you need a GUI to do so, download and install Dave Page's excellent tool http://pgadmin.postgresql.org Cheers, Jean-Michel POURE