mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
protected void finalize() {
close(); } in LargeObject.java so that the db resources are released when it is garbage collected or am I missing something? Philip Crotwell
This commit is contained in:
@ -120,7 +120,15 @@ public class LargeObjectManager
|
|||||||
res.close();
|
res.close();
|
||||||
DriverManager.println("Large Object initialised");
|
DriverManager.println("Large Object initialised");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Added to free resources during garbage collection,
|
||||||
|
* Philip Crotwell <crotwell@seis.sc.edu>
|
||||||
|
*/
|
||||||
|
protected void finalize() {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This opens an existing large object, based on its OID. This method
|
* This opens an existing large object, based on its OID. This method
|
||||||
* assumes that READ and WRITE access is required (the default).
|
* assumes that READ and WRITE access is required (the default).
|
||||||
|
Reference in New Issue
Block a user