SL Baur <steve(a)beopen.com> writes:
(setq R (pq-exec P "This is a bad query;"))
#<PGresult PGRES_FATAL_ERROR - >
This should signal a real error. We've got an error system; let's use
it. The PostgreSQL error object should be encapsulated within the
error data, so that a handler can use it.
DEFUN ("pq-finish", Fpq_finish, 1, 1, 0, /*
Close the connection to the backend.
Note: This entry point is provided for completeness, but its use is not
recommended. The preferred way to delete connections is to let the Emacs
garbage collection mechanism do it.
I agree with Jan about this. GC is there to manage memory;
programmers who rely on GC to clean up all the resources could be
called lazy at best.