"Robert A. Knop Jr." <rknop@lilys.lbl.gov> writes:
> If one uses libpq functions such as PQfname, should one free the returned
> character string?
No. Unless the doc for the function explicitly says you should free
its result, it's a pointer into libpq-managed space.
regards, tom lane