Re: deleting large objects from jdbc

From: Barry Lind <barry(at)xythos(dot)com>
To: heatherm(at)famoice(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: deleting large objects from jdbc
Date: 2001-08-09 03:09:39
Message-ID: 3B71FEF3.2070105@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Heather,

Your understanding is correct. You need to delete the large object when
you no longer reference it in any other rows. The SQL statements below
should work for that purpose.

thanks,
--Barry

heatherm(at)famoice(dot)com wrote:
> Hi,
>
> I've been browsing the newsgroup archives and came across the following:
>
>
>>>>>>Can you see a scenario where a programmer would forget to
>>>>>>
> delete the
>
>>>>>>data from pg_largeobject and the database becoming very large
>>>>>>
> filled
>
>>>>>>with orphaned large objects?
>>>>>>
>
> Does this mean that to delete my large object I need to delete the row
> in my table, and also the row or rows in pg_largeobject. Currently I am
> only deleting the row in my table. I have just been looking at the
> pg_largeobject table, it seems to have more rows than I would expect in
> it. Is the solution to pass these two commands to jdbc?
> delete from my_table where lob_oid = 1234
> delete from pg_largeobject where loid = 1234
>
> Thanks in advance
> Heather.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-08-09 03:20:14 Re: Bug found in the driver
Previous Message Barry Lind 2001-08-09 02:48:19 Re: JDBC 2.0 conformance, documentation and todo list