"Brendan Jurd" <direvus@gmail.com> writes:
> Is it crucial that result sets be cleared before going out of scope?
It sounds like it'd leak memory inside psql; but realistically that's
probably not an enormous problem for this usage. How much uglification
of the code are we talking about to fix it?
regards, tom lane