Re: Lookup tables - Mailing list pgsql-general

From David G. Johnston
Subject Re: Lookup tables
Date
Msg-id CAKFQuwaPUJCwmf75Uwu1_kLGfOgdt9L+Y-2evudS0RQBNU3-fA@mail.gmail.com
Whole thread Raw
In response to Lookup tables  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Lookup tables
Re: Lookup tables
List pgsql-general
On Tuesday, February 4, 2025, Rich Shepard <rshepard@appl-ecosys.com> wrote:
Should lookup tables have a numeric FK column as well as the description column?

If so, how should I add an FK to the two lookup tables in my database?

Most do (have a surrogate PK) since it removes cascading updates and is a smaller value.

Lots of alter tables and update queries.

David J.

pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Lookup tables
Next
From: Rich Shepard
Date:
Subject: Re: Lookup tables