Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwzfD-0007gq-Vu for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Sep 2018 00:57:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwzfC-0001wh-3J for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Sep 2018 00:57:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwzfB-0001wa-S2 for pgsql-hackers@lists.postgresql.org; Tue, 04 Sep 2018 00:57:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwzf4-00056A-TX for pgsql-hackers@postgresql.org; Tue, 04 Sep 2018 00:57:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w840vX9Y025441; Mon, 3 Sep 2018 20:57:33 -0400 From: Tom Lane To: "Iwata, Aya" cc: "'Yugo Nagata'" , "pgsql-hackers@postgresql.org" Subject: Re: libpq debug log In-reply-to: <71E660EB361DF14299875B198D4CE5423DE4A154@g01jpexmbkw25> References: <71E660EB361DF14299875B198D4CE5423DE3FBA4@g01jpexmbkw25> <20180827215124.0cdb4d0cb99136b5a86b1d9f@sraoss.co.jp> <71E660EB361DF14299875B198D4CE5423DE4A154@g01jpexmbkw25> Comments: In-reply-to "Iwata, Aya" message dated "Tue, 04 Sep 2018 00:29:09 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25439.1536022653.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 03 Sep 2018 20:57:33 -0400 Message-ID: <25440.1536022653@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Iwata, Aya" writes: > The purpose of this log acquisition I thought is to identify where is th= e problem: = > server side, application side or traffic. = TBH, I think the sort of logging you're proposing would be expensive enough that *it* would be the bottleneck in a lot of cases. A lot of people find that the existing server-side "log_statement" support is too expensive to keep turned on in production --- and that logs only received SQL queries, not the returned data, and certainly not every message passed over the wire. regards, tom lane