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 1tfQgi-002KCz-E0 for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 21:42:32 +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 1tfQgh-008y3O-IZ for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 21:42:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tfQfy-008tJ6-TB for pgsql-general@lists.postgresql.org; Tue, 04 Feb 2025 21:41:46 +0000 Received: from sm-r-006-dus.org-dns.com ([84.19.1.234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tfQfv-003C7I-2H for pgsql-general@lists.postgresql.org; Tue, 04 Feb 2025 21:41:45 +0000 Received: from smarthost-dus.org-dns.com (localhost [127.0.0.1]) by smarthost-dus.org-dns.com (Postfix) with ESMTP id DF9CEA151A for ; Tue, 4 Feb 2025 22:41:40 +0100 (CET) Received: by smarthost-dus.org-dns.com (Postfix, from userid 1001) id D2F44A1518; Tue, 4 Feb 2025 22:41:40 +0100 (CET) X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_INFOUSMEBIZ, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from ha01s018.org-dns.com (ha01s018.org-dns.com [62.108.32.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smarthost-dus.org-dns.com (Postfix) with ESMTPS id 8B5ADA151A for ; Tue, 4 Feb 2025 22:41:40 +0100 (CET) Authentication-Results: ha01s018.org-dns.com; spf=pass (sender IP is 146.185.68.202) smtp.mailfrom=thiemo@gelassene-pferde.biz smtp.helo=dummy.faircode.eu Received-SPF: pass (ha01s018.org-dns.com: connection is authenticated) Date: Tue, 4 Feb 2025 22:41:38 +0100 (GMT+01:00) From: Thiemo Kellner To: "pgsql-generallists.postgresql.org" Message-ID: <64603f36-b6d5-469b-8d6d-30376842241b@gelassene-pferde.biz> In-Reply-To: <628D4022-5365-4D00-810B-10349A90874A@kleczek.org> References: <628D4022-5365-4D00-810B-10349A90874A@kleczek.org> Subject: Re: Lookup tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <64603f36-b6d5-469b-8d6d-30376842241b@gelassene-pferde.biz> X-PPP-Message-ID: <173870530033.2048734.10841686077407417097@ha01s018.org-dns.com> X-PPP-Vhost: gelassene-pferde.biz X-POWERED-BY: wint.global - AV:CLEAN SPAM:OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 04.02.2025 18:31:09 Micha=C5=82 K=C5=82eczek : >=20 >> On 4 Feb 2025, at 18:27, Thiemo Kellner wr= ote: >>=20 >> =EF=BB=BF Unless the lookup table is actually a check constraint one can= use to populate dropdown boxes in an interface. >=20 > That is even worse because it ceases being transactional and users might = select something different than what they see on the screen. I might see what you want to point out. E.g. the table is COLOURS. The rec = with id 1 is RED, the one with id 2 is BLUE, 3 is GREE and so on. Now you l= oad these values into the dropdown box that sports RED, BLUE, GREE and so o= n. While someone selects GREE, there is a maintenance release changing GREE= to YELLOW. So when that someone sends the selection by id to the backend, = not GREE is selected but YELLOW. A) Your release changed the sementics of the record 3. It's meaning changed= . I cannot recommend doing that. B) If you absolutely must change the semantic, put your application into ma= intenance mode in which noone can select anything beforehand. If the maintenance would just correct the typo from GREE to GREEN, nothing = would happen. Yor customer still ordered the lavishly green E-Bike her hear= ever desired.