ID column naming convention - Mailing list pgsql-general

From droberts
Subject ID column naming convention
Date
Msg-id 1444757781856-5869844.post@n5.nabble.com
Whole thread Raw
Responses Re: ID column naming convention
Re: ID column naming convention
Re: ID column naming convention
List pgsql-general
Hi, is there a problem calling ID's different when used as a FK vs table ID?
For example


mydimtable ()
 ID
 name
 description


myfacttable ()
  my_dim_id   # FK to ID above
  total_sales


I 'think' if I don't enforce foreign key constraints, then this practice
prevents tools from being able to generate ERD diagrams right?



--
View this message in context: http://postgresql.nabble.com/ID-column-naming-convention-tp5869844.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Understanding "seq scans"
Next
From: Rob Sargent
Date:
Subject: Re: ID column naming convention