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 1nKxN6-0006FT-P2 for pgsql-docs@arkaria.postgresql.org; Fri, 18 Feb 2022 07:08:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nKxN3-0005gM-Rw for pgsql-docs@arkaria.postgresql.org; Fri, 18 Feb 2022 07:08:01 +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 1nKxN3-0005gD-Jv for pgsql-docs@lists.postgresql.org; Fri, 18 Feb 2022 07:08:01 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKxMz-0003Q8-JT for pgsql-docs@lists.postgresql.org; Fri, 18 Feb 2022 07:08:01 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A25293201DFD; Fri, 18 Feb 2022 02:07:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 18 Feb 2022 02:07:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date: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; bh=CKJg8AZHV9SOBCwaXuB+Uq1lpWXNjscoUYoF0/niW TY=; b=iH+3UCqcMEJplVapW+MKnZ1rjBEISuhH1Vq1Xtq6WE7mp5kj9gWU76Qxd s3XALRTrTZyjAqZ6W+vr8OJC/vGkJb2nuGYSZYyTkUtUrSKmAq6eeagg/v2/R/sp 45UI1DbxNv2msyxsXKwqM/NwtejoxiZTAWMZeC8toVew0sN7dAU70VFX+IEBZ5io Ap9EWXUf/eabHFklR8KH9CJF0jjLcqSa5SoBMbcm0KXWwoZT9Seu0TMwlCgHnvvW 8sHIu6t6POwSenE2dlzBXz9QRsJElebZnQicT6pk3Ik4KLl+GG/hWzfo2iJcdcsH OoBrnAoZwjDhmpMNa0RYnEhN8Wocw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeelgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnheplefgteefiedtleelgeeg jeevhfeuteefvddtjeehveeuieefgedvhfeuleduteeunecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Feb 2022 02:07:49 -0500 (EST) Message-ID: <9b3e1b97-4d2f-25af-fa52-1b2c31511444@enterprisedb.com> Date: Fri, 18 Feb 2022 08:07:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: maximum number of backtrace frames logged by backtrace_functions Content-Language: en-US To: Fujii Masao , Tom Lane Cc: pgsql-docs@lists.postgresql.org References: <0f0ed9f3-3892-e8a3-51c9-ed268dff6bdd@oss.nttdata.com> <4e16a3e9-e717-05e1-d905-6c21beba80f8@enterprisedb.com> <252159.1643899696@sss.pgh.pa.us> <33675df8-60e1-7da6-8995-3743668fd682@oss.nttdata.com> From: Peter Eisentraut 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 07.02.22 17:42, Fujii Masao wrote: > On 2022/02/08 1:12, Peter Eisentraut wrote: >> This change looks good to me.  There is also backtrace code in >> assert.c that might want the same treatment. > > Yeah, that's good idea! The attached patch also adds the same treatment > into assert.c. I don't know if using write_stderr() is the right thing here. Since backtrace_symbols_fd() writes directly to stderr in any case, the whole Windows-specific eventlog dance in write_stderr() wouldn't make sense even if this feature supported Windows. So I'd just do a straight fprintf(stderr) there.