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 1vAr5M-006cOc-DJ for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 14:42:07 +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 1vAr5L-001XRI-9M for pgsql-general@arkaria.postgresql.org; Mon, 20 Oct 2025 14:42:06 +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 1vAr5K-001XN4-B1 for pgsql-general@lists.postgresql.org; Mon, 20 Oct 2025 14:42:05 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vAr5H-002o2z-1X for pgsql-general@lists.postgresql.org; Mon, 20 Oct 2025 14:42:04 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 8E870EC00D8; Mon, 20 Oct 2025 10:42:02 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Mon, 20 Oct 2025 10:42:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1760971322; x=1761057722; bh=swIptlGTJIueMyZgMGMi0LAJCCTDGvfNii8TDvopIuw=; b= hAwzYYuyf9yHkxMG6mIcg7aVmMz6ViVByPrtdcZRyxeeR+y/N95666+ZhwfOf6fe cM9Te5eSVFEM+wNma+OVhwtjGJn5pQq91sYKuoDPc4FQR8rzZUudXyt6zmqJDLV9 NgtZBC9t9idDeA0opq3sDf1ysfHBnVzwKKx0omHsdckbcBWEli3GB/3MNwj7G0NX xHIyB7yHxfdnkkSYXz2A2lvJdLaLqNW0GY5661QzEg/ti5MGIGgVvaROrL7QWT8l LWEufnzklabDy+ei8l7g6K4YjDNg1BKYdFOebhaymzIBe4cIH58acFQtYGV8UiLg 806SkJNAvVDoU/gC8DL9Zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1760971322; x=1761057722; bh=s wIptlGTJIueMyZgMGMi0LAJCCTDGvfNii8TDvopIuw=; b=gNLT+EeeY8Gpb+ys6 oS5SDsHzQd65J3k1f/0lBQGv8zX5zby7s0T8s46yGqpU0q74/iA0W7JChospMWxO 1NU+wZq154lKnEv5WySh1ubsHEXtnhmj8v4NN+x48JXS68wzar1vLGxJIC7yaujt GlNLhdA1maP+cRMm8GnxSrJh1Y6zHHLH/Z5k1G+gWu4wnsdLz9YRxAfRVSJB3FZK merSFYCmW2skzOWXMKv+7usPRiH1HUI6q47ko27nCrg/MR6VtJ3El1KKr7s0e9AP iMsOEqxKN791rA8NXLmrezFwvjDhlLG2y5zCZFNnvl2Z0clYsHjdi6vb80wxc/oB znklQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddufeektdekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeejvedt hefgudeiteefheejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrshhhvghprg hrugesrghpphhlqdgvtghoshihshdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghn vghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Oct 2025 10:42:01 -0400 (EDT) Message-ID: Date: Mon, 20 Oct 2025 07:42:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Arrays vs separate tables To: Rich Shepard , pgsql-general@lists.postgresql.org References: <162e5330-861c-ecc7-45c1-aaa1aff26c88@appl-ecosys.com> <95de5a9b-4dd8-2f7-6e12-98c3d72c52@appl-ecosys.com> <712b8b5c-15d2-e284-a0c0-6263415250c3@appl-ecosys.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <712b8b5c-15d2-e284-a0c0-6263415250c3@appl-ecosys.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/20/25 07:07, Rich Shepard wrote: > On Mon, 20 Oct 2025, Michał Kłeczek wrote: > >> There is also another concern - do you want to make sure phone numbers >> are >> not shared? > > Michal, > > Shared with whom? I run a solo professional services consultancy so there's > only me here the database. That is the heart of the matter, you should do what makes sense to you. If you can get the information you need in the manner you want then don't change things. Given the size of your datasets I don't see that changes will materially affect the performance of your queries. I am pretty sure most of the time the Postgres planner is resorting to a sequence scan anyway. > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com