Re: Lookup tables - Mailing list pgsql-general

From Rich Shepard
Subject Re: Lookup tables
Date
Msg-id b67862aa-c9ac-2ec-c1c7-d2f07a8a39d2@appl-ecosys.com
Whole thread Raw
In response to Re: Lookup tables  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Lookup tables
Re: Lookup tables
List pgsql-general
On Tue, 4 Feb 2025, David G. Johnston wrote:

> The point of a lookup table is to provide a unique list of authoritative
> values for some purpose. Kinda like an enum. But having the label serve as
> the unique value is reasonable - we only add surrogates for optimization.

David,

The industrytypes table has 26 rows, the statustypes table has 8 rows. Your
explanation suggests that for this database adding a PK to each table adds
little, if anything.

Regards,

Rich



pgsql-general by date:

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