"Martin Edlman" <edlman(at)fortech(dot)cz> wrote:
> ERROR: insert or update on table "device" violates foreign key
> constraint "device_parent_id_fkey"
> DETAIL: Key (parent_id)=(19947) is not present in table "device".
>
> But the record is there, it was inserted into net.computer so it's
> selectable from net.device and from net.computer.
This is not a bug, but a known limitation. Bring up this page and
look for the places it mentions "foreign key":
http://www.postgresql.org/docs/8.4/interactive/ddl-inherit.html
-Kevin