Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwZS5-00023H-K3 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 18:49:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwZS5-0005BL-1S for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Oct 2016 18:49:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwZQf-00024v-CO; Tue, 18 Oct 2016 18:48:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwZQc-00059W-Sh; Tue, 18 Oct 2016 18:48:00 +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 u9IIlrHB027744; Tue, 18 Oct 2016 14:47:53 -0400 From: Tom Lane To: Robert Haas cc: Stephen Frost , Thomas Munro , Andres Freund , Evan Rempel , "pgsql-admin@postgresql.org" , Pg Hackers Subject: Re: [ADMIN] 9.5 new setting "cluster name" and logging In-reply-to: References: <1377186808.57546.YahooMailNeo@web193505.mail.sg3.yahoo.com> <1377494614.9111.YahooMailNeo@web193506.mail.sg3.yahoo.com> <56AC5601.5040208@uvic.ca> <20160208142429.5by57csmc75gorg7@alap3.anarazel.de> <20161017222405.GA13284@tamriel.snowman.net> Comments: In-reply-to Robert Haas message dated "Tue, 18 Oct 2016 14:25:27 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27742.1476816473.1@sss.pgh.pa.us> Date: Tue, 18 Oct 2016 14:47:53 -0400 Message-ID: <27743.1476816473@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Mon, Oct 17, 2016 at 6:24 PM, Stephen Frost wrote: >> I'm with Thomas on this and I disagree that the "csvlog bloat" argument >> has merit. If we're worried about bloat in csv then we should provide a >> way for users to control what goes into the csvlog, not argue that >> something which is clearly useful be excluded. > I agree, but I think if we do that it would be highly desirable do > something to make the format discoverable. For example, at the > beginning of each file and whenever the format changes, we write some > kind of unmistakable header line into the file identifying what fields > will be present on each line thereafter. It's undesirable for log > analysis tools to need to contain logic that tries (imperfectly, no > doubt) to reverse-engineer the field list. Automatic "csv header" at the start of each logfile, perhaps? And force a logfile switch if it changes. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers