Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwoi5-00043n-JJ for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Oct 2016 11:07:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwoi5-0006Sj-65 for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Oct 2016 11:07:01 +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.84_2) (envelope-from ) id 1bwogh-0004gb-M0 for pgsql-hackers@postgresql.org; Wed, 19 Oct 2016 11:05:35 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwogc-0000dq-Ld for pgsql-hackers@postgresql.org; Wed, 19 Oct 2016 11:05:35 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:c9d1:5b38:cf68:360]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3szTcn1b6kz3F0C; Wed, 19 Oct 2016 13:05:29 +0200 (CEST) Date: Wed, 19 Oct 2016 13:05:28 +0200 From: Christoph Berg To: Bruce Momjian Cc: Stephen Frost , Peter Eisentraut , Tom Lane , Michael Paquier , Robert Haas , Thomas Munro , Craig Ringer , Jim Nasby , PostgreSQL Hackers , Andres Freund Subject: Re: Renaming of pg_xlog and pg_clog Message-ID: <20161019110528.d5w7t6qnmpsosmjg@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Bruce Momjian , Stephen Frost , Peter Eisentraut , Tom Lane , Michael Paquier , Robert Haas , Thomas Munro , Craig Ringer , Jim Nasby , PostgreSQL Hackers , Andres Freund References: <78d8090c-84c3-3eb6-0b6a-5a4db90d6fbb@2ndqu!adrant.com> <15297.1476285726@sss.pgh.pa.us> <071f8400-b966-1a0b-9066-e5bb789189d7@2ndquadrant.com> <20161014113523.GZ13284@tamriel.snowman.net> <20161014171902.nb3hyg6koemwbzhb@msg.df7cb.de> <20161018220909.GA11661@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161018220909.GA11661@momjian.us> User-Agent: NeoMutt/20160916 (1.7.0) 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 Re: Bruce Momjian 2016-10-19 <20161018220909.GA11661@momjian.us> > > There's actually another instance of "rename so people shoot their > > feet less often" here: pg_resetxlog, which is a user-facing tool. > > Folks on #postgresql have repeatedly been joking that it should rather > > be named pg_eatmydata, given the number of "howtos" on the web that > > make use of it. Maybe this is the chance to find a less > > innocent-sounding name. (Or add a mandatory --rewind-my-data switch.) > > I wonder how many of the uses of pg_resetxlog were caused by mistakenly > removing the pg_xlog directory. My point is renaming pg_xlog might > reduce mistake use of pg_resetxlog. I don't think there's much of a connection. There are people who clean up disk space by removing everything that sounds like log files. For those people renaming the directories makes sense so they don't have that idea. There are other people who have random database startup problems, ask google, and end up with applying some pg_resetxlog advice (that doesn't necessarily fit their problem). For those people renaming pg_resetxlog to something that sounds more like "it will break your data, use as last resort only" might make sense. (Though I don't have a good suggestion, and the cost of renaming utilities is higher than renaming some internal directory names.) The question would now be if there's people who used pg_resetxlog because they thought it freed up disk space, and if renaming either would have prevented that. I'm less sure about that. (tl;dr: rename pg_xlog yes, rename pg_resetxlog only if we have a good alternative.) Christoph -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers