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.94.2) (envelope-from ) id 1ujHah-005Tkp-H3 for pgsql-general@arkaria.postgresql.org; Tue, 05 Aug 2025 13:20:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ujHaf-009dlA-S1 for pgsql-general@arkaria.postgresql.org; Tue, 05 Aug 2025 13:20:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ujHae-009dl1-Vg for pgsql-general@lists.postgresql.org; Tue, 05 Aug 2025 13:20:29 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ujHac-000rSc-0I for pgsql-general@lists.postgresql.org; Tue, 05 Aug 2025 13:20:28 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id F3FF81D00240; Tue, 5 Aug 2025 09:20:25 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Tue, 05 Aug 2025 09:20:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1754400025; x= 1754486425; bh=3HVmBVthufxEBJ3yG2om97zO6Trnq2NbC+pHaG4Lh2U=; b=i G65m8UbrzJStrJmGBZbkAQTCPX3AtgUG7vSDysmgp24X4QHQ1PkiibPwDe7ua+c4 NoR24WW6lKgozS22ceFuo1NEvdIrEyS+Sru7ROnbMorZyxvZSx/y8K+AuqpynuZs 5ZZwIrrcnMnr1aJM5dxT75de8n5pnkATqEMYJhbRly/T0W5qvZM+y6a9i46yhV0v S3R6Fp8slbymlAls/8bJ6yfCOhQDBP1elJZlaWNcdfSxLgoDLOOgH4fkN0GXrYs7 R2Zpv5Wn9LFX8X8UlbPXl7G8GkZRzCViWyq8lIy96gepEVwZcBk9VqDI/z6AW6WR 0tqZAsuVZ82+uDW29CSmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1754400025; x=1754486425; bh=3 HVmBVthufxEBJ3yG2om97zO6Trnq2NbC+pHaG4Lh2U=; b=FZkDUnks9MndK5kQ+ gAO01o37SegkhHU/T9Ps1KpUUWz6btEnpmagWVOgaQcA9YFAlxUSgMQdIwe+JgxV JRs5FoMEpnGPeDf7PUDSPMgsbDb6f6i6N1Bj4Jv6lYigPahYUVhoMM/Q1TNMpVxp dUKBZefASvsFd5v+jZ2PYrsdC8gPf5lHNYYaYIRf+kkagLM3LwYVGfs4vWh++rhB NaEEiNqE1tDYRGyBWl4yhSTjncweJqbm8UU0KssM4GO0ap4jDfxrCFwnC/O4xWtz jyf6P0LV2fXH+skmGNjC+qgGR7Wc6VOEvBzdmbSBjvRWTOcV1CrrcBKKyWIu3n4n U6vpg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudehvdekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopeguuggvvhhivghnnhgvsehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Aug 2025 09:20:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1754399872; bh=NJaWFXlij+4Idgy+riLjkSkfKpc02cxFGVmkocDKIfk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=NqlJ4eD44S/uJM7iPgC4R0pcKUjYGgr9y4mjQgi2hON6pzPrj3qHzEJ1dKRfRvUzt RYiBw7iKb+yDsDbsgNBaA0Z3sur5IJCf9h/ANR5I+Mv4vATqULPeK0D7tq74dcR+H6 PhaYqw4bsD9fMzdAPpVpt3xN2AqQh1I35qrApPFL7Y9cEszEYbBzAfP+dRS9jkfKSL iVLNi5qCZ/oSh7Z8C0yAWrLaw3tA/8Ld2zjM4b4jgyjUfeO60DvX/sgQAmvCBpViwa dzCNIVtR9jmi7sfRFAZ2e/5gXN1ww5kd3NUaR7JX+X6sQkdsSQCYiiuntiPVGWCdBu vvPInbfZBfRhw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 791BD90; Tue, 5 Aug 2025 15:17:52 +0200 (CEST) Date: Tue, 5 Aug 2025 15:17:52 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Dominique Devienne Cc: pgsql-general@lists.postgresql.org Subject: Re: Notices not printed by PQtrace Message-ID: <202508051317.yl3pokffijjz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Aug-05, Dominique Devienne wrote: > Hi. I'm using PQtrace for client-side tracing with PQtrace, > which I thought was showing protocol messages in details. > > But turns out that RAISE notices from PL/pgSQL are not there. Hmm, don't they show up as NOTICE messages? I think they should. Maybe you could set a notice receiver and have it print to the same file? I think I had to do that at some point. > And to think about it, I wonder whether NOTIFY messages are there too. Please test it and let's us know :-) > Are these oversights? Yeah, probably. As far as I am concerned, the current PQtrace() code was mostly written to allow us to develop libpq pipeline mode. (I don't know what had Aya Iwata in mind when she wrote it.) For that, neither NOTICE nor NOTIFY were very interesting, so I didn't stop to think about them. > Any chance this could be enhanced, via new opt-in PQsetTraceFlags flags? > Ideally I've like to see everything. Yeah, I think that makes sense. Feel free to propose a patch. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "In Europe they call me Niklaus Wirth; in the US they call me Nickel's worth. That's because in Europe they call me by name, and in the US by value!"