Postgres version 7.2.1
The problem is that whenever i have queries based on the same link resource to postgres i get INVALID RESOURCE ID errors as if the connection is droped from postgres...
for example, i execute a query selecting all my users from the db,
works fine
next i try to execute a query to fetch the users photos from another table (i know it can be done in row, just for the example's case)
In the second query i execute i get these errors.
And they keep appearing without any normal patern or warning.
My queries are sql perfect, and all problems where solved when i switched my db class to create constant connections instead of the normal ones.
This resulted in very bad performance from the server as persistent connections stay open and incrementaly hang the db...
I heard some time ago that this was a php bug, and followed every patch/upgrade of php but the problem still remains leaving me with a bad performance for db calls.
:/