Just a random collection of SQL, PL/SQL, PLpgsql code.
Please help yourself: copy, modify, use it.
ARC (4 tables)
XOR enforced with a CHECK constraint.
Intersection Table
... including code for parent tables, populated via PL/SQL anonymous blocks.
Last update 2017-03-05 by SB