Skip site navigation (1) Skip section navigation (2)

server dropping connection

From: Reed Loefgren <rloef(at)interfold(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: server dropping connection
Date: 2006-05-03 00:13:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php

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




pgsql-php by date

Next:From: Andy DunlopDate: 2006-05-03 09:13:10
Subject: Select and order by question
Previous:From: BelfegorDate: 2006-04-30 13:53:56
Subject: Re: PostgreSQL 8.1 + PHP5.1.x/4.4.2 + Apache 2.0.55/1.3.34

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group