Alvaro Herrera <alvhe...@alvh.no-ip.org> writes: > For PQclear() specifically, one thing that I thought a few days ago > would be useful would to have it return (PGresult *) NULL. Then the > very common pattern of doing "PQclear(res); res = NULL;" could be > simplified to "res = PQclear(res);", which is nicely compact and is > learned instantly.
That's a public API unfortunately, and so some people would demand a libpq.so major version bump if we changed it. regards, tom lane