Finalize large object patch - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Finalize large object patch
Date
Msg-id 200106062115.f56LFeM18047@candle.pha.pa.us
Whole thread Raw
List pgsql-jdbc
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
  pgman@candle.pha.pa.us               |  (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
     */

pgsql-jdbc by date:

Previous
From: "Dave Cramer"
Date:
Subject: Re: Newbie kestion
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [HACKERS] Outstanding patches