Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIgS8-0005AY-8Z for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2019 21:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIgS6-0004iD-Qx for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2019 21:26:14 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIgS6-0004eP-G3 for pgsql-general@lists.postgresql.org; Mon, 22 Apr 2019 21:26:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIgS4-0007Ca-7C for pgsql-general@postgresql.org; Mon, 22 Apr 2019 21:26:14 +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 x3MLQ84a027503; Mon, 22 Apr 2019 17:26:08 -0400 From: Tom Lane To: Jeremy Finzel cc: Postgres General Subject: Re: Why does log_error_verbosity not apply to server logs? In-reply-to: References: <26062.1555966040@sss.pgh.pa.us> Comments: In-reply-to Jeremy Finzel message dated "Mon, 22 Apr 2019 15:54:20 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27501.1555968368.1@sss.pgh.pa.us> Date: Mon, 22 Apr 2019 17:26:08 -0400 Message-ID: <27502.1555968368@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeremy Finzel writes: > On Mon, Apr 22, 2019 at 3:47 PM Tom Lane wrote: >> Sure sounds to me like what you are setting is something client-side, >> not the server's log verbosity. It works for me: > I am running it differently - explicitly raising a LOG level message, not > an ERROR. The line of interest is the following: My question was about how you (think you are) setting log_error_verbosity, not what you're doing to produce the message. The decisions in elog.c about which fields to print in the server log do not depend on the latter. However... looking again at what elog.c does, I'm prompted to ask whether you're using plain or CSV log output. The CSV log format doesn't consider log_error_verbosity when deciding whether to output this field. regards, tom lane