Arjen van der Meijden <acm(at)tweakers(dot)net> writes:
> Recent postgresql versions (7.3.3 perhaps? Dunno when it got included)
> cache the query-plans on the connection that was used for that
> connection.
There is absolutely no truth to the above statement. There is no plan
caching (except in plpgsql, which has had it from the beginning).
You can get the effect of plan caching with prepared statements ...
but the OP didn't say anything about using PREPARE ...
regards, tom lane