pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roland Walter <rwa@mosaic-ag.com>
Cc: 時期 精霊 <kuon@goyman.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Streaming blob to db
Date: Tue, 05 Jul 2005 10:31:46 -0400
Message-ID: <12922.1120573906@sss.pgh.pa.us> (raw)
In-Reply-To: <42CA911B.4090802@mosaic-ag.com>
References: <15D1FD8F-91C2-4565-B804-E43DDEEC93AB@goyman.com>
	<Pine.BSO.4.56.0507040431160.14393@leary.csoft.net>
	<15EE35F3-F225-443B-831D-D1115E37E6DA@goyman.com>
	<42CA911B.4090802@mosaic-ag.com>

Roland Walter <rwa@mosaic-ag.com> 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



view thread (6+ messages)

Message-ID: <12922.1120573906@sss.pgh.pa.us>
Permalink:  ../12922.1120573906@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12922.1120573906@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rwa@mosaic-ag.com, kuon@goyman.com, books@ejurka.com
  Subject: Re: Streaming blob to db
  In-Reply-To: <12922.1120573906@sss.pgh.pa.us>
  References: <15D1FD8F-91C2-4565-B804-E43DDEEC93AB@goyman.com> <Pine.BSO.4.56.0507040431160.14393@leary.csoft.net> <15EE35F3-F225-443B-831D-D1115E37E6DA@goyman.com> <42CA911B.4090802@mosaic-ag.com> <12922.1120573906@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox