Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tfPzL-002H96-Jv for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 20:57:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tfPzK-008Ya6-Cw for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 20:57:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tfPzK-008YZx-2J for pgsql-general@lists.postgresql.org; Tue, 04 Feb 2025 20:57:42 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tfPzH-003Ilj-0M for pgsql-general@postgresql.org; Tue, 04 Feb 2025 20:57:41 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id D92142A14D6 for ; Tue, 4 Feb 2025 12:57:34 -0800 (PST) Date: Tue, 4 Feb 2025 12:57:34 -0800 (PST) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Lookup tables [FIXED] In-Reply-To: Message-ID: <990871a-b4e-1af-a98d-82d38a077ec@appl-ecosys.com> References: <4e7a338-c7d3-e944-20bd-a6e346e175c7@appl-ecosys.com> <0def87f9-6fa6-49a7-b0bc-f313c066d387@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 4 Feb 2025, Rich Shepard wrote: > I'll make new tables today. That did not work as well as I expected. Instead, I added a new column (type `serial') to each of the two lookup tables. That adds a PK to each while retaining the table and column names referenced by other tables. Thanks for all your comments, Rich