Referential integrity on large objects - Mailing list pgsql-hackers

From Marc Balmer
Subject Referential integrity on large objects
Date
Msg-id etPan.58239f9e.327b23c6.1ae@msys.ch
Whole thread Raw
List pgsql-hackers
I am looking for ways to ensure referential integrity on large objects. Something like having a column myoid in a table that holds an oid of a large object, and which throws an error when the referenced large object should be unlinked.  Like "myoid references pg_largeobject(loid)", which does not work right now, as foreign keys to catalogs are not supported.

Do you have any idea if this could be accomplished? Would it be complicated?  Could it be realised as a sponsored development?  If so, what would be the estimated effort/cost?

I'd be happy to get any hints at this.

- mb

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: proposal: psql \setfileref
Next
From: Michael Paquier
Date:
Subject: Re: Bug in comparison of empty jsonb arrays to scalars