pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: heatherm@famoice.com
To: pgsql-sql@postgresql.org
Subject: deleting large objects from jdbc
Date: Wed, 8 Aug 2001 15:32:52 +1000
Message-ID: <H000007e0003c614.0997248771.server1.workware@MHS> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <H000007e0003c614.0997248771.server1.workware@MHS>
Permalink:  ../H000007e0003c614.0997248771.server1.workware@MHS/
Also on:    postgresql.org/message-id/H000007e0003c614.0997248771.server1.workware@MHS

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: heatherm@famoice.com
  Subject: Re: deleting large objects from jdbc
  In-Reply-To: <H000007e0003c614.0997248771.server1.workware@MHS>

* 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