From: ts Date: 2001-06-26T23:44:59+09:00 Subject: [ruby-talk:16902] Re: finalizers, destructors and whatnot >>>>> "D" == David Leal writes: D> What I actually want is that a connection to a database (I'm using pgsql) D> be closed automatically when an object goes out of scope. If you use the extension postgres, a call to PQfinish() is made automatically when an object is garbage collected. Guy Decoux