Re: ID column naming convention - Mailing list pgsql-general

From Gavin Flower
Subject Re: ID column naming convention
Date
Msg-id 56230B2C.4050505@archidevsys.co.nz
Whole thread Raw
In response to Re: ID column naming convention  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: ID column naming convention
List pgsql-general
On 18/10/15 00:13, Karsten Hilbert wrote:
> On Fri, Oct 16, 2015 at 04:59:12PM -0500, Jim Nasby wrote:
>
>> BTW, I found Karsten's idea of using 'pk' for the surrogate key, and
>> fk_table_name interesting. It helps avoid ambiguity from externally
>> generated ID values.
> That's the point :-)
>
> Here's a real live schema using (mostly) the above approach:
>
>     http://www.gnumed.de/~ncq/gnumed/schema/gnumed_v20/
>
> in case anyone is interested in taking a look.
>
> Karsten
Hmm...

Apparently (according to your naming convention) several tables (such as
'clin.substance_intake') have 2 PRIMARY KEYs!!!

I guess you must have a large wall to display the schema on!

Looks like a lot of fun.

Can you tell us more about the database (ignoring nit-picking!)?


Cheers,
Gavin


pgsql-general by date:

Previous
From: Scott Mead
Date:
Subject: Re: ID column naming convention
Next
From: "Karsten Hilbert"
Date:
Subject: Re: ID column naming convention