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.96) (envelope-from ) id 1x24Ib-005ZLD-08 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2026 10:04:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x24IZ-00HCIY-2j for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2026 10:03:59 +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.96) (envelope-from ) id 1x24IZ-00HCIQ-1Z for pgsql-hackers@lists.postgresql.org; Thu, 03 Sep 2026 10:03:59 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x24IW-00000002hZu-3DZD for pgsql-hackers@postgresql.org; Thu, 03 Sep 2026 10:03:58 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-c2055573c8cso287245766b.3 for ; Thu, 03 Sep 2026 03:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planetscale.com; s=google; t=1788429835; x=1789034635; darn=postgresql.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=mx9w4J1UCglyWXCeZiGMMJKq4f3LnLo+UJK+Xf+KroI=; b=CA+JzcpvSzJAgl7FsIfTP9flr15jtQsKZbGqCtI0lIltiBuOBNo6/UMbqZ7se7dObb xJ3mcLGwZUVi8bmjmPPNwVLTOQaxqz2Wg1VqiqzN0/d+XE/XyHxmxvzbVnGAS9jpLxIU kUksX+nng0/0nKeGcFkbS2bsIbt3QkU3Rm9oKeOxwjk8j0G09zdP2INgsiJBRn1EUZno PlFmQLJ7vN+HM0JPuFwp9KfKHWnv2mS13AJ621olePAs1lejZ5ek92WdF8uJyZWXj5/o oP8yCYar0EJN5wzE5Tg13go7RoJVPf6p+Pxzn8jOqy+OmvPzjAkRMvPr7XYYroRLPkU2 MZeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788429835; x=1789034635; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mx9w4J1UCglyWXCeZiGMMJKq4f3LnLo+UJK+Xf+KroI=; b=W6xp/R8h9vPPN2B4gou5LfC7u4j6MpEvHWSB5Nsnqshat6uTuCZ8BIX5lWlO2MRMpZ UGANUm7dCdsZFptdIsQQZfFqCdSOe13z2uZTt46LvmPKOJGGxKwxGlizMyxQQz6HlLA6 g5BdedHzIQkuCSHvLDqCPrNSreiKU5oGj3M/ENZxtK6YGosQf4lHgJFZ5bcXZfmPunGr 68bIyj4zz5e3wPjzRp4Owc5uFIBeonCoKx/Vl7EXbwldNAgza/vvHweS9PBsfxmnDnHS V4NRl294Ocl26NW/tYzhnP/3pBG4UK3CeKyRhp/91otdRuCmPwqyoBSlpF7oZWdpSTTv QScQ== X-Gm-Message-State: AFuF++kyNWcwtsREi0nAMFoZhYGDdC2uMEytJq/wNoIhl+gZ4Ghn13Xo 6MFNlAncVpzKBHyI3GISFtmdS+7/dAQxP4JE1jEd9gXlqD7ee/J6z0NYCUNSEYuCg+XKO8dzAlv 0rqTO X-Gm-Gg: AYBFou1aCo+YP7i3/018bk6S85b3aaIHO5N/feKd0v5kSMJcKXAYKg7hm9PMr3+502b JBw6nMSwSn3MEVvk4+oT7JC8Y05IQNKhFI5TgrK+Rts8RI4VhWdZ7iO4Vz0TxgLd3tkEF6OErrn DGlMQSiWWKLA5kRLTFhWeXk50NmGCqfVa+sQojZsOATYa1gLjtRgzF/jBjr7i0kYMBChqTmzgs9 NOx8QGpY33yjZkVfmnXPw33jtou2KHll7pDfhivPaxVEGDx5vjg9KiKMyPlDRU725DaNhasMEFQ J5pUi9+9xDKi8M55yd8eg7WI8ZRIiUv+KRjCvjcxjtCMRhYJKwiymevJWA+BAgq3pRtcrEdL+yC 2kYSNIYu+AU5FykN4aL/ET5WZRhz+VR9VQxIpRUbSicPAZQSWfnkogjlmDozBKXDJ6KoltEL7vi luDsL3MpcHIZIcVOmF6EekuATZWUbw0QlZ8TZ79wC9hFa6hVLZ6Do5lCdU2CffQ9Br9szC6PXlf LlJl9ZHcGJpV5qDmSjrxdVpLtiTtT8cbhdwuFnYoJA= X-Received: by 2002:a17:907:da16:b0:c1f:29ce:76a1 with SMTP id a640c23a62f3a-c25d550e29emr660863866b.19.1788429835538; Thu, 03 Sep 2026 03:03:55 -0700 (PDT) Received: from ?IPV6:2a04:4540:6512:7000:46b:84df:93da:6013? ([2a04:4540:6512:7000:46b:84df:93da:6013]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c25f41f0478sm76167066b.48.2026.09.03.03.03.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2026 03:03:55 -0700 (PDT) Message-ID: <2eeb05e6-eec4-4cd2-8bca-3e69188712b5@planetscale.com> Date: Thu, 3 Sep 2026 12:03:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Many of psql's describe functions bloat cache / waste mem To: xliu19163@gmail.com, Andres Freund Cc: pgsql-hackers@postgresql.org References: <7u2wehplakrobc5rvuomgurjqc3osns2n6fdxsajvhpqbzarmi@4kknsc6ymuja> <19204305-0261-4b63-81fd-85da5be78adc@planetscale.com> <4e8af360-9c74-477a-806d-8b433a37bfb6@planetscale.com> Content-Language: en-GB From: Jan Nidzwetzki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Xiaoyu, On 03.09.26 04:30, xliu19163@gmail.com wrote: > Hi Jan, > > Thanks for testing v2 and for the additional review. > > Attached is v3. I split the changes into two patches: Thank you for the v3 patch series. I have applied the patches in order and performed a "make check-world" after each patch. They applied cleanly to the master branch, and all tests passed successfully. I ran a couple of tests and compared the command output to master. The output looks good and unchanged. I can also confirm that the memory reduction I measured with v2 is still there. So, the series looks good to me. Best regards Jan -- Jan Nidzwetzki PlanetScale Postgres Core Team