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 1rDXc0-002L32-CR for pgsql-general@arkaria.postgresql.org; Wed, 13 Dec 2023 22:21:53 +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 1rDXby-000aCB-JK for pgsql-general@arkaria.postgresql.org; Wed, 13 Dec 2023 22:21:50 +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 1rDXbx-000aBE-0n for pgsql-general@lists.postgresql.org; Wed, 13 Dec 2023 22:21:50 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDXbr-00AGFN-97 for pgsql-general@lists.postgresql.org; Wed, 13 Dec 2023 22:21:47 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 0DA643200A69; Wed, 13 Dec 2023 17:21:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 13 Dec 2023 17:21:41 -0500 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=fm3; t=1702506100; x=1702592500; bh=oiV23bzcoOFkzFDjHIKIbzZWSyB9Ck8SqnbQWkdm6IY=; b= fN14uxCKjm9/Hy64BHr1gfN/9z/Urzot0RpYq66HBdIQGHsTnS2UROucCWTJUvU0 SVj5S3nTxD0ih4ILzV1DlWheucrOsEkY/HK/GAhMw1vsvdo9F6SvwUo6pSJI5rQ3 nMV4gIFGWWo9uVTKZoIdui/VG7K21vxG6Zqk8GCNTxjWwMSmHIcL/R7xhyIF/3at zjlww+rmf9Xrt7WhsSHH8IvNBUNf3O1DoY+qLr6x8CSg6PkuQlYxmVefSUNS8w1Q eA3QEJALOL2ocQ+8ZAYlTmlBQSyhHuojMz9JJV8sHEnqVLQYy79eCQ26S5nBEGtq tBfSggalPsK/G13pioSkOQ== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1702506100; x= 1702592500; bh=oiV23bzcoOFkzFDjHIKIbzZWSyB9Ck8SqnbQWkdm6IY=; b=w +k7GW/B241fAAVVKcIZa0GdFFrWIM6Fqms7DJlDqiL2hxl7U+a2jeHPWHhOG96mq iAvdr2QPlEQLNbk8r3VrBq3+qHc2Vm+U2c9jMfID3Lv4mddntQhsvQXmwc1hZbiB 4p5hrzfnBwWm0tozaO538FY0Lv/7MO5iAiB2Jqwco7NILt80IIpWviRl4Eatk4Gj xW0BdiGbpqEnOXoH3G8uxWrgG+AbYdhZH0/44fabOsTaIz/sp/La4etpbYwqsrNX TmpvelxvAJwSCqN+RDU8ix7IhCYIrQ8oiMVU1j4yYa27tSqvssQ5guvzyfNyHBpv OjEr7UjNO3/Fp1824t0ug== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeljedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeffleegieefgfevudehtdfhkeeutdffjeevgeffgeej vedthefgudeiteefheejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Dec 2023 17:21:39 -0500 (EST) Message-ID: <87680387-ed25-41ff-b6de-37e357398df9@aklaver.com> Date: Wed, 13 Dec 2023 14:21:39 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Increased storage size of jsonb in pg15 To: Sean Flaherty , pgsql-general@lists.postgresql.org 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 12/13/23 14:07, Sean Flaherty wrote: > Hello, > > We are seeing an increase in the reported storage size of our jsonb > columns (using pg_column_size) since upgrading to Postgres 15.5 from > version 14.  The increase in size is enough to push us over the size > threshold and more of our data to get written to the TOAST table. More information needed: 1) Table definition. 2) An example of reported size for the 14.? and 15.5 cases. 3) Differences in the database attributes between the two instances. 4) Was this done on same machine? If not how are the machines different? 5) How the upgrade was done? > > I can't find any information online, is anyone aware of what would cause > this change in storage size for essentially the same data? > > Kind regards, > Sean -- Adrian Klaver adrian.klaver@aklaver.com