Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTS9H-0004j6-QN for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Sep 2021 17:04:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mTS9G-00058y-NC for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Sep 2021 17:04:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTS9G-00058X-5W for pgsql-hackers@lists.postgresql.org; Thu, 23 Sep 2021 17:04:38 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mTS9B-0007DU-MI for pgsql-hackers@postgresql.org; Thu, 23 Sep 2021 17:04:37 +0000 Received: by mail-ej1-x636.google.com with SMTP id p24so614893ejx.1 for ; Thu, 23 Sep 2021 10:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JSphopY6ae/stHxLwatR3YavdErUBSy4LqcaepAYoDg=; b=c1kW0aW51SCNUz7V9WXjeea8ARJALtrnqGdpkb8OHCnGJOZ2EhP8HbmppBu3JVNzDi QfNxnYtad1h7lBhP9yoJVAVSlW4q6q1il9SzSZxTdJsBhdWIxDr/ykkKqwi6vrpq3kIH W9B4P6uvsRBnvWwOMfIfPZr1u6x3sZITZ53CsxYhs4asF5S5yXr2JI316aqqQvR9L1Ay D8gYp+MlAceXUojP8aX2/cZ3hLXg4Ss30PV7ylq6tO/XBYqjNho+qriDfSIzU2zgqpkZ MUHy3g07wHehaxqz7kmGul832547hmZGJDhrxLFsAHxu2Ni+Ky+AXv3Q2ZUb0fHoKsch KdUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JSphopY6ae/stHxLwatR3YavdErUBSy4LqcaepAYoDg=; b=bUeEb8ZgeuDOJ3Pz5tMuoekjdwc0F4L4H26TuCjJokjgjaMq4eun8r/7yfgfjF6Vlo 6n7av54jFqlrgHCfvrGLGkgw5/9e+veNpF3be22d5le0QIcJ5mjVILmWpe3bUXwhkOVI jkWEIqijeJUEfIOSlqLEUHMZZ1vJMAHfKvOdZmAQTj3fwARDlXUv1zWjJ7vHCmVtTNgK k2VWJEBQiZdJEOhorRu8WE32INgQ9yWxYBryitmFvQZf4COPBW8ZmhZaIGDEi63kortQ Y4S2xydoo4yCf4kDBuBjRhulUGsmopiuQU5h7so7Z2FABG/wAnyeJ9BX16DyWGAAW7BZ zS0w== X-Gm-Message-State: AOAM532tCEZORJ3vJpGuU3Upii/wfgpJEnbN5w6L8ycT0ap1wJ1pPbKX QLtfFoeM1STCtjFuc9wW/R3NTxQK8nTGAsbzELq9bZeLoH+fBDzAWUOvFBFC86hfyB5u60Gm3ST dvgUXKIkOJF56Z9sKJfAGQu6pDdBFYvjGf9ATxRsEVNjgNFo0efPF7/ktS7AtYnfHYfBLHTRVD4 +USH9S+RYZFOdEPmgBCknDC0spXuGJYmlDecF5rS9oyZN6jfYRcEmmVbePUtPhxF+aD4VX+Jtkp yvTvymTqljIvi9X2xqHhwUucHfQsY3Lqi/DvA== X-Google-Smtp-Source: ABdhPJzSCKanznp6nwFP3APkSGdpE7FVkZWXqexX1/SZw8Y51Zg/MK4YF7HHiOpHofrTNB4kZKontw== X-Received: by 2002:a17:906:26c4:: with SMTP id u4mr5983312ejc.511.1632416670162; Thu, 23 Sep 2021 10:04:30 -0700 (PDT) Received: from [10.137.0.18] (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id ck10sm3936321edb.43.2021.09.23.10.04.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 10:04:29 -0700 (PDT) Subject: Re: mem context is not reset between extended stats From: Tomas Vondra To: Justin Pryzby Cc: pgsql-hackers@postgresql.org References: <20210915200928.GP831@telsasoft.com> <20210921013745.GM831@telsasoft.com> <93ca19f5-00d4-5e39-471d-9b962a8c9201@enterprisedb.com> Message-ID: Date: Thu, 23 Sep 2021 19:04:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <93ca19f5-00d4-5e39-471d-9b962a8c9201@enterprisedb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, I've pushed both of these patches, with some minor tweaks (freeing the statistics list, and deleting the new context), and backpatched them all the way to 10. Thanks for the report & patch, Justin! regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company