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 1tfMKq-001mJL-U3 for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 17:03:41 +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 1tfMKp-005mfK-RN for pgsql-general@arkaria.postgresql.org; Tue, 04 Feb 2025 17:03:39 +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 1tfMKp-005mfB-Gl for pgsql-general@lists.postgresql.org; Tue, 04 Feb 2025 17:03:39 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tfMKm-003Ghg-2b for pgsql-general@postgresql.org; Tue, 04 Feb 2025 17:03:39 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-29fad34bb62so3125398fac.1 for ; Tue, 04 Feb 2025 09:03:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738688615; x=1739293415; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=CHnJsvoLXdiOZcuKfL7IEocB78kCBqDDiFrxKs3Wp7c=; b=VrDRlL/hAkq1JmVlTuD9nAMI2autWDh2bI5Q6Q6CrVWhLuFrFjOStl1lKMWUh9NSib Ndja8bCs3HuQyRjPdvEsjvx8l5EmxbZbEmRLu2dJOUQVRBPJIF6Pop82uCROJtV2kpJH +V9XHk7ZPfhF8Pyk2D5uKR5I91GL0f2JAxAdU74cSgqnVT8nF2inudt10R9fcfVF/jPo HXSaI5iCojYS/j9C4UemXNxDy2Zu3gAooHVPvTvomIA+GxeRIOPDjnScpAaHvBNmoTdD sI00sOiY7Gn9pq8ZHcmCoj2RSGAtKPdWuSg74659zMqSnLR1s6KKEhxmbS1XO5QdUEBL 9iJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738688615; x=1739293415; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CHnJsvoLXdiOZcuKfL7IEocB78kCBqDDiFrxKs3Wp7c=; b=FnE5xQbiVijAK4IjYFBaZaVfFU1GRwm9zAZ0655fEfCdD1MUyagk5PfPXttvyT/8S/ 8lkuzGt8a5u/KjEJAQJ6a5SLJvj6leUaonWY0q72tCNLkQILnS+S1CCMIEFWJm97f3aC S19kLoxxawwPfn+6j7UHZJ0Ezqj/eRO9DbuACXBp2dRxGDRoKlXMMzUt7Sd7gfgplmAR 9SonIiEl6irzRsdAIpzy12rRxKJ38f/bIvfCSzFGZ6aF4v+g7o9gv/Dsbae5KDFmbKgO NAZdqj9rY7bvx3aK/6Bb9ukujnXqqvDhKqI4rv8PRBhFCgNCWvhuq/LsOvXX6MOQ+w01 ogkQ== X-Gm-Message-State: AOJu0YyI/9lB9N43lRGaKTNhqZC/kBuWvqS0+fj6Bdd6PNObu4xC5ehf SmEQKbgyEYjf0ticrL/WCK24NL511Iy3iZVY+jKaL/hn7RqNX8/awAzF0FsFlMDFZIZcAgo+Hy4 D0G76L5avJnlMPg/PtoVGNMtgPRhU0g== X-Gm-Gg: ASbGncvf5nmvZY27TIOnVedqjqX1EYSjQbooU6zc7x1j/n2fKcK5lXib8RySEgJeNF1 vkokeKZHw5wCCKIsR/1UZzLuAhclvb8aHVaE57nVT8b/WJtXMKbE3sLXdzK/AuLs07ORafteSy0 ai7yDxvwQ4+djmFLtuB8D1kLAdQ71EYX0= X-Google-Smtp-Source: AGHT+IFcqxj+YAsghPc1GnYwu5tO84Hw6ZGnVYZZn4RR0Pym7RElrPeUJUkhri1RE4NXSAs+GnJi7c+ZHUqiXzJfvg0= X-Received: by 2002:a05:6871:650c:b0:296:7b65:2fac with SMTP id 586e51a60fabf-2b32ef7510amr15529277fac.3.1738688613464; Tue, 04 Feb 2025 09:03:33 -0800 (PST) MIME-Version: 1.0 References: <4e7a338-c7d3-e944-20bd-a6e346e175c7@appl-ecosys.com> In-Reply-To: From: Ron Johnson Date: Tue, 4 Feb 2025 12:03:22 -0500 X-Gm-Features: AWEUYZmvg-uK3-CEu5iCCSoX05qNBIfa9GTuTQkHudlYukZhALA1XyVPWL5-42c Message-ID: Subject: Re: Lookup tables To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000002e5569062d53fdac" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002e5569062d53fdac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 4, 2025 at 11:31=E2=80=AFAM Micha=C5=82 K=C5=82eczek wrote: [snip] > > The query to register a visit is: > insert into restaurant_visit > select $user, current_date, restaurant_id, $rating > from restaurant where name =3D $restaurant_name > > > It is now completely unclear what it means to change the name of the > restaurant for already registered visits. > Is it still the same restaurant with a different name or a different > restaurant? > > Or let say someone swaps names of two restaurants. > That means a user that goes to the same restaurant every day would > register visits to two different restaurants! > Valid concerns, which means that you add a new restaurant record when the name changes. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000002e5569062d53fdac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Feb 4, 2025 at 11:31=E2=80=AFAM M= icha=C5=82 K=C5=82eczek <michal@kl= eczek.org> wrote:
[snip]=C2=A0
--
Death to <Redacted>, and butter sauce.
Don't boil= me, I'm still alive.
<Redacted> lobster!
--0000000000002e5569062d53fdac--