X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7B2CF5284E for ; Tue, 5 Jul 2005 11:32:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09718-01 for ; Tue, 5 Jul 2005 14:32:08 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C25275298D for ; Tue, 5 Jul 2005 11:32:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j65EVkrt012923; Tue, 5 Jul 2005 10:31:46 -0400 (EDT) To: Roland Walter Cc: =?UTF-8?B?5pmC5pyfIOeyvumcig==?= , Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: Streaming blob to db In-reply-to: <42CA911B.4090802@mosaic-ag.com> References: <15D1FD8F-91C2-4565-B804-E43DDEEC93AB@goyman.com> <15EE35F3-F225-443B-831D-D1115E37E6DA@goyman.com> <42CA911B.4090802@mosaic-ag.com> Comments: In-reply-to Roland Walter message dated "Tue, 05 Jul 2005 15:54:35 +0200" Date: Tue, 05 Jul 2005 10:31:46 -0400 Message-ID: <12922.1120573906@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/29 X-Sequence-Number: 13177 Roland Walter writes: > 時期 精霊 schrieb: >> How can I trigger the deletion of the large object when the row >> containing the oid is deleted? >> >> I mean I know that: >> DELETE FROM pg_largeobject WHERE loid = nnn >> >> But is there in jdbc, an automatic way to handle that? > There is a vacuumlo program in the contrib directory of the > database source. Also see contrib/lo for a trigger you can install to delete blobs immediately when the reference is deleted. regards, tom lane