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 1oea8N-0008Mv-74 for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Oct 2022 10:54:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oea7N-0005Bn-VR for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Oct 2022 10:53:13 +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 1oea7N-0005Be-31 for pgsql-hackers@lists.postgresql.org; Sat, 01 Oct 2022 10:53:13 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oea7H-0001bq-9Y for pgsql-hackers@postgresql.org; Sat, 01 Oct 2022 10:53:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4375A3200077; Sat, 1 Oct 2022 06:53:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 01 Oct 2022 06:53:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1664621581; x= 1664707981; bh=9HITJ+05Kn+qQ/v508dCPqfbgaKyUjTmnjCMu5jl8yY=; b=Z BhD6t6tvyftk6gvgKogrzxb4CpUxvFvRejvTpobmgKjZ8Hi55PlP9s6bB3/O3lLm TAZpw6zdiv0YHKe3Pj0vqhtC77kOsPlW9Suidj4XCiLtYd4/H5hZGQjDm9x7BxZ+ bl6qyHTlzmAYFYI792KKifZu7q37HgBOb7L75Pi2CKQryEqBzCcAACSSPljMzMkl XkUuhvRuQp4Xt0Zo8mK2AHXqjUyodXOX4xSAoY/ge3jG40oVGNdCw8U0jBFAPoUV xUFJkHVf2yLHqXkAhySpHGP1chN0MGEFTFbgKx/cZf+f8sj90wpckrGWneRogiAX 8hjoGgeWFOeC0PBwbgqSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehgedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 1 Oct 2022 06:53:00 -0400 (EDT) Message-ID: <9dbf3db1-6894-321c-af49-e122a7cd47cb@enterprisedb.com> Date: Sat, 1 Oct 2022 12:52:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH] Log details for client certificate failures Content-Language: en-US To: Masahiko Sawada , Jacob Champion Cc: Tom Lane , Andres Freund , "pgsql-hackers@postgresql.org" References: <2878aee8-a4a6-8078-9740-efe90fcf8328@timescale.com> <20220719223823.pj4z36ce3zb27qdb@alap3.anarazel.de> <2007344.1658355307@sss.pgh.pa.us> <2012342.1658356951@sss.pgh.pa.us> <6f9eff5c-ecc6-c0d5-df8e-8df9e2f10534@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 29.09.22 06:52, Masahiko Sawada wrote: > While this seems a future-proof idea, I wonder if it might be overkill > since we don't need to worry about accumulation of leaked memory in > this case. Given that only check_cluter_name is the case where we > found a small memory leak, I think it's adequate to fix it. > > Fixing this issue suppresses the valgrind's complaint but since the > boot value of cluster_name is "" the memory leak we can avoid is only > 1 byte. I have committed this. I think it's better to keep the code locally robust and not to have to rely on complex analysis of how GUC memory management works.