I have applied the following patch to clean up during large object
garbage cleanup.  I had applied something earlier but had placed it into
the wrong class file.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
Index: src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java
===================================================================
RCS file: 
/home/projects/pgsql/cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java,v
retrieving revision 1.3
diff -c -r1.3 LargeObject.java
*** src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java     2001/02/14 
17:45:16     1.3
--- src/interfaces/jdbc/org/postgresql/largeobject/LargeObject.java     2001/06/06 
21:12:31
***************
*** 89,94 ****
--- 89,100 ----
      this.fd = fp.getInteger("lo_open",args);
    }
  
+   /* Release large object resources during garbage cleanup */
+   protected void finalize() throws SQLException
+   {
+     close();
+   }
+ 
    /**
     * @return the OID of this LargeObject
     */

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to