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 1ubPGJ-000QB6-If for pgsql-general@arkaria.postgresql.org; Mon, 14 Jul 2025 19:54:55 +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 1ubPGH-00Ctkw-Gw for pgsql-general@arkaria.postgresql.org; Mon, 14 Jul 2025 19:54:54 +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 1ubPGH-00Ctko-65 for pgsql-general@lists.postgresql.org; Mon, 14 Jul 2025 19:54:53 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ubPGF-007HwM-0L for pgsql-general@lists.postgresql.org; Mon, 14 Jul 2025 19:54:52 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 9D6567A02AA; Mon, 14 Jul 2025 15:54:50 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 14 Jul 2025 15:54:50 -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=1752522890; x=1752609290; bh=Dlb7oyjz6wOTf7ZH6/JqScz6pBf1B4U8KWoTkUQGeMU=; b= Ke3N6aUZvIDkNEN1U9l0CoZ9UYrpDxVBZJmZMZSSFN7GHe0mgWFZUxLw3nBqD0gw VT/mY6+RfbCSv7FrWN8Xon2cnW3xUnt49lXksFpiK7c8OQrqOYqAU1XStqJBuyZE tyM/6d9jrS9RMZz18QKqPSKkJXjTddUdvQSMy5GF3U4NieYlqKkWsVzwIcKiAaN6 KcQJ4XbULRswNvOnGbGjiFln1FjxUV5l9dkjSiYtTYsT6lmPfBJKiSak4ONsUNsz 7/mtGt6VoEx6bq9PRrTtvqLqV+5txdbqEb9/i2caMnKamRoHBDbBC77dfsPtIZ+2 Iuu7/yogFIKQPlOxx4iAbQ== 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=1752522890; x=1752609290; bh=D lb7oyjz6wOTf7ZH6/JqScz6pBf1B4U8KWoTkUQGeMU=; b=bw5c1+JXjo5PgR42d xJ/ybf0R59XuV1Ji9Uo0KfZPDdBVWzXoW1cWvLTOgZTWNBtmRCiXYVS3/E7Izybs qWpSwlv7TKo2ZgDIRSfbZnEDJ16PDmcuks3SHSwW6h8PbNGUqgb5OYqJzZ9+1YqN A9FMOGUrcfL4RCVmkc8Wodi0simNyVdt4Vohv6Tx4NNbBmXiHnLiaT0vsz4JWunV 9ZkDw3D46SiKtlWPazyWVREeayOgI06tdavM2+aUlkclJaCp4N944DCdVdamA/w9 KrcwWnyr4pTngmsFhE0DB7mR3Bqu7+upUEkZxrXnMCBSwbHei73aSO+JuoNCk+Q9 7EdmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehvdekgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcu mfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqne cuggftrfgrthhtvghrnhepleegveekkeekueeigfdtveeileeuhfefudefteekjeffkeej ueejheegheegkedtnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopehvvggvmhgrtddttddtsehgmhgrihhlrdgtohhm pdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Jul 2025 15:54:49 -0400 (EDT) Message-ID: <8efa554c-ba95-43d5-953c-def0d53dca9e@aklaver.com> Date: Mon, 14 Jul 2025 12:54:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Performance of JSON type in postgres To: veem v , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: 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 7/14/25 12:51, veem v wrote: > Hi, > It's postgres 15+. And need guidance on JSON types, (for both on premise > vanilla postgres installation and AWS cloud based RDS/aurora postgres > installations). > > I have never worked on a JSON data type in the past. But now in one of > the scenarios the team wants to use it and thus want to understand if > there are any pros/cons in using JSONB vs JSON in postgres. Is there a > specific scenario in which one should use one vs other. Any storage or > performance threshold or limitations if any exists etc? Even some team > mates suggest storing it simply in string data types. So I want to > understand the experts' opinion on this which I believe will  be > crucial during design itself. It is spelled out here: https://www.postgresql.org/docs/current/datatype-json.html > > Regards > Veem -- Adrian Klaver adrian.klaver@aklaver.com