Re: php and postgres - too many queries too fast?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Hart <tomhart(at)coopfed(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: php and postgres - too many queries too fast?
Date: 2007-11-05 22:53:15
Message-ID: 1194303195.22428.126.camel@dogma.ljc.laika.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2007-11-05 at 17:18 -0500, Tom Hart wrote:
> UPDATE table SET is_ok = 'TRUE' WHERE var1 = value1 AND var2 = value2
> AND var3 = value3.....

As others have said, you need to narrow the problem down a bit more
before we can provide useful help.

However, a wild guess might be that some of your fields contain NULLs.
In SQL, NULL=NULL is _not_ true (more specifically, it is NULL).

To see what I mean, do "SELECT 1 WHERE NULL=NULL", it will return 0
rows.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Hart 2007-11-05 22:56:38 Re: php and postgres - too many queries too fast?
Previous Message andy 2007-11-05 22:32:59 Re: How to temporarily disable a table's FK constraints?