Gergely Czuczy <phoemix@harmless.hu> writes:
> i've got a very strange problem, PQexecPrepared returns NULL, but if i
> immadietly rerun the query it will run normally, returning the query
> result. what can be the problem, and how could I track it down, solve it?
Check PQerrorMessage().
AFAIR the only reasons for a null result (instead of a possibly-error
PGresult) would be out-of-memory or connection failure.
regards, tom lane