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 1oEHyQ-0002Rj-Nn for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 22:15:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oEHyP-0002hE-BA for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 22:15:17 +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 1oEHyP-0002h5-1v for pgsql-hackers@lists.postgresql.org; Wed, 20 Jul 2022 22:15:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEHyK-0002AP-IH for pgsql-hackers@postgresql.org; Wed, 20 Jul 2022 22:15:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26KMF7WR2007345; Wed, 20 Jul 2022 18:15:07 -0400 From: Tom Lane To: Jacob Champion cc: Andres Freund , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Log details for client certificate failures In-reply-to: References: <2878aee8-a4a6-8078-9740-efe90fcf8328@timescale.com> <20220715211914.c5oasfknx2njndov@awork3.anarazel.de> <1d3d62a0-2d7f-4592-bf76-ba59a77e61cc@timescale.com> <20220715234519.7o4mlpxapmqmv6p7@awork3.anarazel.de> <20220719161432.qha3s76vyc6k4v5m@awork3.anarazel.de> <1212792.1658248783@sss.pgh.pa.us> <20220719170954.nshvmok3tymxdpl3@awork3.anarazel.de> <20220719223823.pj4z36ce3zb27qdb@alap3.anarazel.de> Comments: In-reply-to Jacob Champion message dated "Wed, 20 Jul 2022 15:11:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2007343.1658355307.1@sss.pgh.pa.us> Date: Wed, 20 Jul 2022 18:15:07 -0400 Message-ID: <2007344.1658355307@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > The guc_strdup() approach really reduces the amount of code, so that's > what I did in v3. I'm not following why we need to return NULL on > failure, though -- both palloc() and guc_malloc() ERROR on failure, so > is it okay to keep those semantics the same? guc_malloc's behavior varies depending on elevel. It's *not* equivalent to palloc. regards, tom lane