Re: Lookup tables

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Lookup tables
Date: 2025-02-04 15:08:41
Message-ID: b67862aa-c9ac-2ec-c1c7-d2f07a8a39d2@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support 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

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Tony Shelver 2025-02-04 15:11:00 Re: Lookup tables
Previous Message Rich Shepard 2025-02-04 15:05:20 Re: Lookup tables

Browse pgsql-general by date

  From Date Subject
Next Message Tony Shelver 2025-02-04 15:11:00 Re: Lookup tables
Previous Message Rich Shepard 2025-02-04 15:05:20 Re: Lookup tables