Finalize large object patch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Finalize large object patch
Дата
Msg-id 200106062115.f56LFeM18047@candle.pha.pa.us
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Dave Cramer"
Дата:
Сообщение: Re: Newbie kestion
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [HACKERS] Outstanding patches