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 1l7IjU-0005Tn-Fy for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 14:02:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7IjT-0007tm-EV for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 14:02:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7IjT-0007tf-7w for pgsql-hackers@lists.postgresql.org; Wed, 03 Feb 2021 14:02:11 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7IjR-0001wa-E1 for pgsql-hackers@lists.postgresql.org; Wed, 03 Feb 2021 14:02:10 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id ABAEC5C01B5; Wed, 3 Feb 2021 09:01:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 03 Feb 2021 09:01:58 -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=4egiV9/j6DDfxeE1+WvUJLfxRVm4t1Mqb/dDe4y7k5E=; b=skcUSCqk kPidOfOWEZ+QxnsCjzqol4f4+GnmRhIJKkfnxnTvNBWOaad7A4i4YtcWp7/P0fwX SkeP/7fvPQKZLMY26C132er6XU74RUAjmJrqrXX13RVIkgXuSwBw3+Lx/zMZNPI9 sOMYaFLBpg2Vp/66uFJtNA5vSzX+J1LT6Zc3ilb4sQaBdMTNVT0RAol9yIQnaDbh vyflBeLnkrJMDAplSxsjyKTPkeM+5ycLHXEqxStE7XT8ccVTPjevmycH/Pgcs6qJ 2IrkALyOzwWjpJv/N+6iFtzGyiU3n9lxgzo8Y/XOXJGgmgUYYmFjLB+gqpE3pDsb oQLvWo7YrzyLWQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedvgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjfgesthekre dttderudenucfhrhhomhepkdetlhhvrghrohcujfgvrhhrvghrrgdkuceorghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepgfdvvedvte eiheevgfeltdetgffghfeghedvleehvdetiedthffgjeegkeekjeeknecukfhppeduledt rdelhedrudelrddujeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 3BC77240057; Wed, 3 Feb 2021 09:01:57 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8298E2A0BC0; Wed, 3 Feb 2021 11:01:54 -0300 (-03) Date: Wed, 3 Feb 2021 11:01:54 -0300 From: 'Alvaro Herrera' To: "tsunakawa.takay@fujitsu.com" Cc: "iwata.aya@fujitsu.com" , "k.jamison@fujitsu.com" , "'pgsql-hackers@lists.postgresql.org'" Subject: Re: libpq debug log Message-ID: <20210203140154.GA25582@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-03, tsunakawa.takay@fujitsu.com wrote: > (39) > + of tracing. If (flags & PQTRACE_OUTPUT_TIMESTAMPS) is > + true, then timestamp is not printed with each message. > > The flag name (OUTPUT) and its description (not printed) doesn't match. > > I think you can use less programmatical expression like "If flags contains PQTRACE_OUTPUT_TIMESTAMPS". I copied the original style from elsewhere in the manual. > (41) > +void > +PQtraceEx(PGconn *conn, FILE *debug_port, int flags) > +{ I'm not really sure about making this a separate API call. We could just make it PQtrace() and increment the libpq so version. I don't think it's a big deal, frankly. -- Álvaro Herrera 39°49'30"S 73°17'W "El conflicto es el camino real hacia la unión"