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 1vAq5w-006Ssw-HC for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 13:38:39 +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 1vAq5v-000T2O-9z for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 13:38:38 +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 1vAq5u-000T2G-UD for pgsql-general@lists.postgresql.org; Mon, 20 Oct 2025 13:38:38 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vAq5r-002nQB-3A for pgsql-general@lists.postgresql.org; Mon, 20 Oct 2025 13:38:36 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-b4aed12cea3so752852766b.1 for ; Mon, 20 Oct 2025 06:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kleczek.org; s=google; t=1760967513; x=1761572313; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IZktqb4GwSswpWcvBkjNJmGlzNS+5RSIyPLouwVXyCY=; b=MrgN/u7pkVEvuLBD7Tej6lrtTcFaPzLkKNsVg9SMpTaJuRpeO+6o2su7SP8vadMqIw ssueBEp/rBSk9ngcJBdk2g7c+rKISHHxAs9Unkgm+2HuzQNRBNH/fVuzTl6jOxkuGk0V Ce2PmW6K2vxqf0RjT6erxOp435NvfKkI7yiWs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760967513; x=1761572313; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IZktqb4GwSswpWcvBkjNJmGlzNS+5RSIyPLouwVXyCY=; b=kugtKhjD7nXheirPrNWpCkvxt6NIIEY0Kj10zGQXD88nWjXYqwNKryYk0Lq4Ah0pQF A8Fq82EAiT0CXvz3Q+F+i7anymktOv/LSl9pjU6BGQUFbufUkUTB1ktq5O6/P60s58HB Ak9NTvGy9xgOKKXERwqCztke/tAU7PME71U6fRYpU8u1lQ2vmke48aZ4DZonSPo2CZ+m jNBflckJsa/tlLTdu69lXN+A9XtQoErdCQZUBRRLDxZv5jTS7JkYA/0DLpDLgPdp6VPR yKYpthGuNy97K8AxtQ51jFW85ZwSH4Tw4WNJoPPrH9eBvlbr4RvujMdFCP9k+S24t7CG iYrA== X-Gm-Message-State: AOJu0YwiJBa8CQ6EpTopV2MdvvXA5H/0HNTxFTbw8HaUqlMu28+g0LMv e2pXn9VpHzekI7sKe/8U/cB6FAITmoLZ6uxYZMM7IWwQnedjsDuzaFXlps8Lo1VSY/eK6/Fs//t TGmZq X-Gm-Gg: ASbGncvj96xm2MRbZ1264CE1DbfNEFn9kCiGmG+vj0ojDfBlZiK1mGE7wYEjwrB2CAY u+KX55wv8Bmym5SKoKgsmaWJavsbI+re3By2jK3ViIT6+3cCsODPE8+Pt04y3WwKfPG/BEVjhLB 9g+pg7w87lbm/HiYj2p4p1W4Ns1eyUtehDr18Palz1FN5TTywe2bZ76InkV0bc5HN1XvzwYiPrX gLJveUhfOqVX4TIfI+TgkqY2w22SUyCf5dPnT807GbHnMj2GszK5BsxAgialWzTdGN2wOUaBI+T ZOM3QPgTIqpFvRyxssA9XJJKzcWXVMMoBhyDf4yo21ZbdN6i3XH/IjX9ihfaHWOs1Mceiu1Babr zDZ3e7L659EsJjsWC/ZKr/xJGi4mMv95ig27zZMDhKGIgXXRgrM+q2yBVQKs3w7ZroQcQItRWaO y7G8ffmLxH4R35vVSxmTuXeXpwqM0qPgiLv2MVIg== X-Google-Smtp-Source: AGHT+IHnumzbMyN6RRMkXQiCexqf8rLMwsG1/Jph0+8j8LDdJiQnjZbwMEx8hr0cR/Crd1rEYXR7Og== X-Received: by 2002:a17:907:3e9f:b0:b54:858e:736f with SMTP id a640c23a62f3a-b6474b365b5mr1434205866b.36.1760967512600; Mon, 20 Oct 2025 06:38:32 -0700 (PDT) Received: from smtpclient.apple (b15.kleczek.org. [185.20.172.182]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b65eb0366casm807313966b.47.2025.10.20.06.38.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Oct 2025 06:38:31 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Arrays vs separate tables From: =?utf-8?Q?Micha=C5=82_K=C5=82eczek?= In-Reply-To: <95de5a9b-4dd8-2f7-6e12-98c3d72c52@appl-ecosys.com> Date: Mon, 20 Oct 2025 15:38:21 +0200 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <162e5330-861c-ecc7-45c1-aaa1aff26c88@appl-ecosys.com> <95de5a9b-4dd8-2f7-6e12-98c3d72c52@appl-ecosys.com> To: Rich Shepard X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 20 Oct 2025, at 14:55, Rich Shepard = wrote: >=20 > On Mon, 20 Oct 2025, Peter J. Holzer wrote: >=20 >> * Simplicity: If a set of values is always fetched together and = updated >> together, you might as well treat it as a unit and not split it over >> multiple tables >=20 >> The second may be relevant for you. If you always display and edit = the >> phone numbers of a contact together and your frontend makes it easier = to >> edit an array than a subset of rows from a table, you might just = stuff >> them into a table and ignore "purity". >=20 > Peter, >=20 > Thank you. That's my use case. There is also another concern - do you want to make sure phone numbers = are not shared? =E2=80=94 Michal=