From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Design database schemas around a common subset of objects
Date: Sun, 7 Nov 2021 17:10:06 -0800 (PST)
Message-ID: <dfee5bbf-9ac9-034-ac85-2917437b97e7@appl-ecosys.com> (raw)
In-Reply-To: <1116172276.274316.1636330474638@office.mailbox.org>
References: <766855348.80521.1636243329249@office.mailbox.org>
<8555f244-6bc0-51b0-9143-8caeaed150a7@aklaver.com>
<1116172276.274316.1636330474638@office.mailbox.org>
On Mon, 8 Nov 2021, Erik Wienhold wrote:
> One thing I already know that may differ is how modelled objects are named
> in the real world. We deal with plots of land, hence the geographic data.
> Depending on the region, these plots may use different naming schemes
> relevant to legal documents. The core objects would use a generated
> surrogate key but each project would have a dedicated relation that maps the
> real-world names of those plots to their surrogate keys. The real-world
> names can be normalized into multiple attributes instead of just storing
> names as text. This normalization may vary between projects, e.g. different
> number of attributes.
Erik,
How about a table 'plot' that holds the real-world name with an abbreviation
(as the PK) and other information relevant to plots? That seems to be what
you're describing above but explained differently. Land plots, like othter
geographic locations, always have surrogate keys because there's no natural
key associated with it. I use site_nbr, samp_nbr, and similar PKs because
there's nothing inherently associated with those attributes. Here in the US
using SSN (social security numbers) for people are a natural key as is the
VIN (vehicle identification number) for ... vehicles.
Rich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rshepard@appl-ecosys.com
Subject: Re: Design database schemas around a common subset of objects
In-Reply-To: <dfee5bbf-9ac9-034-ac85-2917437b97e7@appl-ecosys.com>
References: <766855348.80521.1636243329249@office.mailbox.org> <8555f244-6bc0-51b0-9143-8caeaed150a7@aklaver.com> <1116172276.274316.1636330474638@office.mailbox.org> <dfee5bbf-9ac9-034-ac85-2917437b97e7@appl-ecosys.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox