Re: [PHP] Loading 2M array crashes program .. but only some of the time

2008-05-18 Thread Ólafur Waage
Are you using a persistent connection? 2008/5/18 Mary Anderson <[EMAIL PROTECTED]>: > Hi all, > > I have a php - postgresql program which bombs with a statement that it has > run out of memory. I am running php 5.1.6 and postgres 8.3.something. My > program bombs, saying that it fails to alloc

[PHP] Loading 2M array crashes program .. but only some of the time

2008-05-18 Thread Mary Anderson
Hi all, I have a php - postgresql program which bombs with a statement that it has run out of memory. I am running php 5.1.6 and postgres 8.3.something. My program bombs, saying that it fails to allocate memory, when it is loading an SQL query result into a php array using pg_fetch_all.