Re: *Proper* solution for 1..* relationship?

From: Wolfgang Keller <feliphil(at)gmx(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: *Proper* solution for 1..* relationship?
Date: 2013-04-30 11:56:46
Message-ID: 20130430135646.4c89aafe7218f755f1606687@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> The most straightforward way I know to enforce this is to check
> that at least one child exists in a DEFERRED trigger on the the
> parent.  You still need to worry about concurrency issues.

Imho it's absurd that I have to do this ("worry about concurrency
issues") myself, how long - more than fourty years after the invention
of relational databases?

As a non-computer scientist by education?

> One way to do that is to use only SERIALIZABLE transactions.  There
> are other ways, though they take more to describe and to implement.

What still astounds me is that, again, this (correct implementation of
1..n relationships with n>0) is an absolutely standard issue that is as
old as relational databases per se and NO ONE has implemented (and
documented and tested and...) a standard solution yet?

Gosh.

What were all those people doing all those decades.

Sincerely,

Wolfgang

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Simon Riggs 2013-04-30 12:43:51 Re: *Proper* solution for 1..* relationship?
Previous Message Kevin Grittner 2013-04-29 20:05:43 Re: *Proper* solution for 1..* relationship?