Re: Large object insert/update and oid use - Mailing list pgsql-general

From Tom Lane
Subject Re: Large object insert/update and oid use
Date
Msg-id 6931.1075580000@sss.pgh.pa.us
Whole thread Raw
In response to Re: Large object insert/update and oid use  (Louis LeBlanc <db@keyslapper.org>)
List pgsql-general
Louis LeBlanc <db@keyslapper.org> writes:
>> For instance you need to explicitly delete a
>> large object when you don't need it any more --- deleting a table row
>> doesn't in itself make referenced large objects go away.

> This still sounds like our current model except for the fact that the
> OID has to be explicitly deleted.  I assume a trigger could be set up
> to perform this on the fly though?

Yeah, as long as you keep things simple (no multiple references to
BLOBs) you can just add an ON DELETE trigger to handle that.

Given that this model is close to what you're already doing, large
objects probably are the way to go.  Good luck with it.

            regards, tom lane

pgsql-general by date:

Previous
From: elein
Date:
Subject: Re: Two joins on same foreign key
Next
From: Gary Stimson
Date:
Subject: Re: [ANNOUNCE] Looking for mail relays ...