X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B609F9FB39E for ; Thu, 31 Aug 2006 04:42:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23721-07 for ; Thu, 31 Aug 2006 04:42:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web55205.mail.re4.yahoo.com (web55205.mail.re4.yahoo.com [206.190.58.169]) by postgresql.org (Postfix) with SMTP id 210469FB374 for ; Thu, 31 Aug 2006 04:42:08 -0300 (ADT) Received: (qmail 42372 invoked by uid 60001); 31 Aug 2006 07:42:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=ZRFYLYBeEgfMwX+XqbEAMeB1UkOHwzLjQGXGAss6JdPHi9ZlKsduw0qnZtBdOnw/0pO/KiQN3rWUSZhRbDozYWe+xfnaHWqG4CJ4ariZG29X0djgAz4eE8stITlukG9SthjIr1VVdGHuVwrlgBwtkRaeg5N/ysJOXB/9G/MRvBQ= ; Message-ID: <20060831074206.42370.qmail@web55205.mail.re4.yahoo.com> Received: from [72.134.0.217] by web55205.mail.re4.yahoo.com via HTTP; Thu, 31 Aug 2006 00:42:06 PDT Date: Thu, 31 Aug 2006 00:42:06 -0700 (PDT) From: babak badaei Reply-To: babak badaei Subject: Re: Postgres 8.1.4 + PHP, hangs when querying more than 16 records! To: Chris Cc: pgsql-php@postgresql.org In-Reply-To: <44F684B9.1010500@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.516 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: ** X-Archive-Number: 200608/20 X-Sequence-Number: 3591 Hi Chris, Run through the native client everything works fine. I know, its really strange. Any ideas? ----- Original Message ---- From: Chris To: babak badaei Cc: pgsql-php@postgresql.org Sent: Wednesday, August 30, 2006 11:42:01 PM Subject: Re: [PHP] Postgres 8.1.4 + PHP, hangs when querying more than 16 records! babak badaei wrote: > OS: Fedora Core 5 > PHP: PHP 5.1.4, PHP 5.1.6, and PHP 4.4.4 (compiled with --with-pgsql and install as binaries using YUM) > Postgres 8.1.4 > > This scripts works: > --------------------------------------------------------------------------------- > // Connecting, selecting database > $dbconn = pg_connect("host=localhost dbname=database user=web") > or die('Could not connect: ' . pg_last_error()); > > // Performing SQL query > $query = 'SELECT * FROM foobar limit 16'; > // Performing SQL query > $query = 'SELECT * FROM foobar limit 17'; That seems really weird. If you run those through psql natively what happens? -- Postgresql & php tutorials http://www.designmagick.com/