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 1lJzw7-0001ZP-4Z for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Mar 2021 14:35:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJzw6-00060x-3J for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Mar 2021 14:35:42 +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 1lJzw5-0005yc-Cg for pgsql-hackers@lists.postgresql.org; Wed, 10 Mar 2021 14:35:41 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJzvy-0006BV-6s for pgsql-hackers@lists.postgresql.org; Wed, 10 Mar 2021 14:35:41 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id C48445C00C6; Wed, 10 Mar 2021 09:35:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 10 Mar 2021 09:35:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=jHW4bR4172GLES5VMJ+kf99D3IgkoZLyYspKEZnjWOE=; b=uCZodXfU 7xDh5N4w/5DPqntkOrKrikuKIg2tze6fmAIXFFWzSygoYf16qjB35pnGqPD9KC67 I0dk7Pc2wM95duKAYVUGmEDskwktrZRtWiEpKMyINf5/eMM1Qb/yuRqDS6gIk3G7 HRmVsZeEhGlC9tIg1wn8ecjLFjDYKWD6i3vnWsQExPL01LyihV+iaQNM2LGvxFDl u7W8QwLGweVtU/CZn/KZ80zcDtzftPHpOBhthvBPp6EY1rqV/k7K01Fd5pjjyTjJ p7+RV8bMDV91aXTkG7WssUCCVd91GbD8TFX0SAtn4/vOVV51nVPT8+az41/sO6P+ xyINlz3qAW656w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoteeftdelqddtudculddvtddmnecujfgurhepff fhvffukfggtggugfgjfgesmhekreertderudenucfhrhhomhepfddkrghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrghdkfdcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnoh dqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeevgeejfeettdelffevleffleehkefg fedutedvheejieetieehleelhfefveetgfenucfkphepudeltddrleehrdduledrleehne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id C3CC3108005C; Wed, 10 Mar 2021 09:35:30 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BCC142A0914; Wed, 10 Mar 2021 11:35:27 -0300 (-03) Date: Wed, 10 Mar 2021 11:35:27 -0300 From: "'alvherre@alvh.no-ip.org'" To: "iwata.aya@fujitsu.com" Cc: "tsunakawa.takay@fujitsu.com" , 'Tom Lane' , "k.jamison@fujitsu.com" , 'Kyotaro Horiguchi' , "pgsql-hackers@lists.postgresql.org" Subject: Re: libpq debug log Message-ID: <20210310143527.GA31741@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210310133127.GA18076@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit I also found that DataRow messages are not being printed. This seems to fix that in the normal case and singlerow, at least in pipeline mode. Didn't verify the non-pipeline mode. -- Álvaro Herrera 39°49'30"S 73°17'W "Nunca se desea ardientemente lo que solo se desea por razón" (F. Alexandre) --4Ckj6UjgE2iN1+kY Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="datarow.patch" diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index 68f0f6a081..e8db5edb71 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -869,6 +869,9 @@ getAnotherTuple(PGconn *conn, int msgLength) goto advance_and_error; } + if (conn->Pfdebug) + pqTraceOutputMsg(conn, conn->inStart, MSGDIR_FROM_BACKEND); + /* Advance inStart to show that the "D" message has been processed. */ conn->inStart = conn->inCursor; --4Ckj6UjgE2iN1+kY--