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 1l9QcN-000453-TT for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Feb 2021 10:51:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9QcM-0004TT-Rf for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Feb 2021 10:51:38 +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 1l9QcM-0004TM-Kl for pgsql-hackers@lists.postgresql.org; Tue, 09 Feb 2021 10:51:38 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9QcK-0006BE-Ag for pgsql-hackers@lists.postgresql.org; Tue, 09 Feb 2021 10:51:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 139785C010C; Tue, 9 Feb 2021 05:51:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 09 Feb 2021 05:51:25 -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=9ns8+q0QeMlMo1sHhOevDpu64dnV/pztmP2ll4vTPU8=; b=usJvxRs/ sdO4g90qR/gll58iOQcGPDBHwbiOhhz6Hh9EKx8OK/RA5EQ8GX2cOMiD9RRUL6nu Y1V/mCSSgCvulw1+N3MJ4ootrAuW4B++JCacWHEKrXOr2ucrMS9VgqL1wcAxnNVL tmGImil7Igm+eJTz6HLcoTMEKIJzi+ugO28NwryIUqenusi95htijSMrEkZJ7NAl WJPzG/5Z5I/6NF9qorym2eiQhsaqHV9+CmGOr1f0QDkgCZgsC4btrT7wBqK+435h FVbdayG+oxr9Mc6wAUfz5a8/MbX1AuEP/pUYXfRuEdYSNmaUHiVx/eG9cyoNflH3 2NZ23Egqnte0BQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheehgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjfgesthekre dttderudenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepueffhfejieeuue ffgedvudekgeeltdeviedvieeufeeiieevgfetheeufeethedvnecukfhppeduledtrdel hedrudelrddujeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 4144C24005C; Tue, 9 Feb 2021 05:51:24 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A9C192A0F28; Tue, 9 Feb 2021 07:51:22 -0300 (-03) Date: Tue, 9 Feb 2021 07:51:22 -0300 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: tsunakawa.takay@fujitsu.com, iwata.aya@fujitsu.com, k.jamison@fujitsu.com, pgsql-hackers@lists.postgresql.org Subject: Re: libpq debug log Message-ID: <20210209105122.GA30281@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210209.154949.838327917835912860.horikyota.ntt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Feb-09, Kyotaro Horiguchi wrote: > This looks like a fusion of PQtrace and PQtraceEX. By the way, the > timestamp flag is needed at log emittion. So we can change the state > anytime. > > PQtrace(conn, of); > PQtraceSetFlags(conn, PQTRACE_SUPPRESS_TIMESTAMPS); I like this idea better than PQtraceEx(). -- Álvaro Herrera 39°49'30"S 73°17'W