Re: php and postgres - too many queries too fast? - Mailing list pgsql-general

From Jeff Davis
Subject Re: php and postgres - too many queries too fast?
Date
Msg-id 1194303195.22428.126.camel@dogma.ljc.laika.com
Whole thread Raw
In response to php and postgres - too many queries too fast?  (Tom Hart <tomhart@coopfed.org>)
List 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


pgsql-general by date:

Previous
From: andy
Date:
Subject: Re: How to temporarily disable a table's FK constraints?
Next
From: Tom Hart
Date:
Subject: Re: php and postgres - too many queries too fast?