You don't need to; PGclear is called automatically some time after the Result is garbage collected. This is done by using PQclear as a finalizer on the foreign pointer that represents a Result:
Hi Leon,
I'm working with your haskell postgresql-libpq package and noticed
that the examples form:
http://www.postgresql.org/docs/9.1/static/libpq-example.html
release a Result using the PGclear() function, however there is no
clear function in postgresql-libpq.
I'm new to libpq in general, so perhaps this is an easy question: what
is the idiomatic way to clear a result using postgresql-libpq?
cheers,
-kirk
--
⑆gmail.com⑆necrobious⑈