Re: *Proper* solution for 1..* relationship? - Mailing list pgsql-novice

From Wolfgang Keller
Subject Re: *Proper* solution for 1..* relationship?
Date
Msg-id 20130502172633.225251081660b9ade4124895@gmx.net
Whole thread Raw
In response to Re: *Proper* solution for 1..* relationship?  (David Johnston <polobo@yahoo.com>)
Responses Re: *Proper* solution for 1..* relationship?  (Richard Broersma <richard.broersma@gmail.com>)
Re: *Proper* solution for 1..* relationship?  (David Johnston <polobo@yahoo.com>)
List pgsql-novice
> > 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?
>
> I would imagine most people are content using a 0..* cardinality
> instead of a 1..*.

Then they don't seem to care for reality. Which is *the* diagnostic
criterion for what psychiatrists call a "psychosis".

Cardinalities, like most aspects of data models, are imposed by
reality (ever happened to have heard of that concept?). If the data
model doesn't match reality, this will be very expensive for someone,
sooner or later.

That this "someone" who in the end has to bear the consequences is
usually not the "database administrator" or "IT manager" etc. is
obvious, unfortunately.

> Please, someone espouse the practical benefits of enforcing that one
> record exists on the child table in order for a record to be present
> on the parent.

In case of e.g. medical information systems, or in my case, maintenance
information systems, quite a few people's lives could depend on the
integrity of the data in the database. A correct data model is one
necessary prerequisite for data integrity.

Is that not enough of an incentive, to not practise homicide (murder?)
by pure lazyness/ignorance/incompetence?

Sincerely,

Wolfgang

P.S.: I would have expected people with such an obscene attitude ("why
care for data correctness") on a list for Access or similar crapware,
but not on a list for PostgreSQL.



pgsql-novice by date:

Previous
From: Gavin Flower
Date:
Subject: Re: *Proper* solution for 1..* relationship?
Next
From: Richard Broersma
Date:
Subject: Re: *Proper* solution for 1..* relationship?