pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Reed Loefgren <rloef@interfold.com>
To: pgsql-php@postgresql.org
Subject: server dropping connection
Date: Tue, 2 May 2006 18:13:57 -0600 (MDT)
Message-ID: <20060502180351.K92645@auden.jmla.com> (raw)

All,

I've been trying to run a nested query via a browser using a php script. 
The script looks at a table with a couple years worth of data (6M rows). 
If I constrain the search to five or six days of the data it works fine 
and displays the result set in the browser, but if I have it parse the 
entire table it errors out with this message:

server closed the connection unexpectedly This probably means the server 
terminated abnormally before or while processing the request.

The error points at line 33, which is the $query = "SELECT..." in the 
script.
The full table query runs fine in psql and the very limited query runs 
fine in the php script so I'm thinking there might be some type of 
resource starvation or client connection timeout happening. In psql the 
full query over two years of data returns a result set (limit 50) in about 
three minutes. Any ideas where I should begin looking?

thanks,

r





view thread (3+ messages)  latest in thread

Message-ID: <20060502180351.K92645@auden.jmla.com>
Permalink:  ../20060502180351.K92645@auden.jmla.com/
Also on:    postgresql.org/message-id/20060502180351.K92645@auden.jmla.com

 · 

reply

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-php@postgresql.org
  Cc: rloef@interfold.com
  Subject: Re: server dropping connection
  In-Reply-To: <20060502180351.K92645@auden.jmla.com>
  References: <20060502180351.K92645@auden.jmla.com>

* 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