From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Enforce primary key on every table during dev?
Date: Thu, 1 Mar 2018 13:39:10 -0600
Message-ID: <b8800ed8-d0dc-2965-0cc7-d60fcb3d459c@cox.net> (raw)
In-Reply-To: <Gj631x02s1DF5NZ01j65kT>
References: <C9EFC294-83B5-41FD-9542-60FDBB2588C6@gmail.com>
<161e1761560-58a6-18e4b@webjas-vad211.srv.aolmail.net>
<5a1870db-7018-fe15-ac60-ffe37abb7077@cox.net>
<5da96fe6-666b-1107-ee76-b464417bd1b7@cox.net>
<Gj631x02s1DF5NZ01j65kT>
On 03/01/2018 01:05 PM, Melvin Davidson wrote:
>
>
> On Thu, Mar 1, 2018 at 2:00 PM, Ron Johnson <ron.l.johnson@cox.net
> <mailto:ron.l.johnson@cox.net>> wrote:
>
> On 03/01/2018 12:32 PM, Daevor The Devoted wrote:
>
[snip]
>
>> If your only unique index is a synthetic key, then you can insert the
>> same "business data" multiple times with different synthetic keys.
>
>
> --
> Angular momentum makes the world go 'round.
>
>
> *If you are going to go to the trouble of having a surrogate/synthetic
> key, then you may as well have a primary key , which is much better. *
I completely agree.
--
Angular momentum makes the world go 'round.
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: ron.l.johnson@cox.net
Subject: Re: Enforce primary key on every table during dev?
In-Reply-To: <b8800ed8-d0dc-2965-0cc7-d60fcb3d459c@cox.net>
References: <C9EFC294-83B5-41FD-9542-60FDBB2588C6@gmail.com> <161e1761560-58a6-18e4b@webjas-vad211.srv.aolmail.net> <5a1870db-7018-fe15-ac60-ffe37abb7077@cox.net> <5da96fe6-666b-1107-ee76-b464417bd1b7@cox.net> <Gj631x02s1DF5NZ01j65kT> <b8800ed8-d0dc-2965-0cc7-d60fcb3d459c@cox.net>
* 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