[pg-devel] pg-disconnect and abnormal exits

Eric Marsden eric.marsden at free.fr
Mon Nov 20 20:51:54 UTC 2006


>>>>> "rjm" == Robert J Macomber <pgsql at rojoma.com> writes:

  rjm> error from the unwind-protect in with-pg-connection.  To guard against
  rjm> the possibility, I've added an :abort parameter to pg-disconnect, like
  rjm> cl:close has, and made with-pg-connection call it with :abort t if the
  rjm> body exits abnormally, in the same way that with-open-file operates.
  rjm> When :abort is true, the modified pg-disconnect closes the database
  rjm> connection ungracefully, including making the close call abort
  rjm> (otherwise, sbcl at keast tries to flush the stream, raising another
  rjm> error if the database isn't there anymore).

  thanks, committed.
  
-- 
Eric Marsden




More information about the pg-devel mailing list