Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxISW-0006vC-Cm for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 18:52:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bxISV-0002kR-Vo for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 18:52:56 +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 1bxISP-0002X0-I2 for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 18:52:49 +0000 Received: from 173-164-140-181-sfba.hfc.comcastbusiness.net ([173.164.140.181] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxISL-0004he-OW for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 18:52:48 +0000 Received: by fetter.org (Postfix, from userid 1000) id F1C45E0622; Thu, 20 Oct 2016 11:52:39 -0700 (PDT) Date: Thu, 20 Oct 2016 11:52:39 -0700 From: David Fetter To: Tom Lane Cc: Robert Haas , Bruce Momjian , Stephen Frost , Michael Paquier , David Steele , PostgreSQL mailing lists Subject: Re: Renaming of pg_xlog and pg_clog Message-ID: <20161020185239.GA11687@fetter.org> References: <20161012153149.GF13284@tamriel.snowman.net> <20161020160500.GT13284@tamriel.snowman.net> <20161020173931.GA13605@momjian.us> <22673.1476986971@sss.pgh.pa.us> <23359.1476987812@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23359.1476987812@sss.pgh.pa.us> User-Agent: Mutt/1.7.0 (2016-08-17) X-Pg-Spam-Score: -0.9 (/) 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 On Thu, Oct 20, 2016 at 02:23:32PM -0400, Tom Lane wrote: > Robert Haas writes: > > On Thu, Oct 20, 2016 at 2:09 PM, Tom Lane wrote: > >> We have the two precedents "pg_subtrans" and "pg_multixact", so > >> unless we want to get into renaming those too, I think "pg_trans" > >> and "pg_xact" are really the only options worth considering. > >> > >> Personally I'd go for "pg_trans", but it's only a weak preference. > > > Heaven forfend we actually use enough characters to make it self-documenting. > > $ ls $PGDATA > PG_VERSION pg_dynshmem/ pg_notify/ pg_stat_tmp/ postgresql.auto.conf > base/ pg_hba.conf pg_replslot/ pg_subtrans/ postgresql.conf > global/ pg_ident.conf pg_serial/ pg_tblspc/ postmaster.opts > pg_clog/ pg_logical/ pg_snapshots/ pg_twophase/ postmaster.pid > pg_commit_ts/ pg_multixact/ pg_stat/ pg_wal/ > > I don't see one single one of those subdirectory names that I'd call > self-documenting. That's a problem we should do something about, even if we can't do it by renaming these all in one go. At the very least, we can do this for any new names. > Are you proposing we rename them all with carpal- > tunnel-syndrome-promoting names? Are you saying that people are getting carpal tunnel syndrome from hitting the tab key, which has been standard for completion in shells for decades? I'm pretty sure that doesn't actually happen. > There's certainly some case to be made for renaming at least one of > "pg_subtrans" and "pg_multixact" so that these three similarly-purposed > subdirectories can all have similar names. But I think on the whole > that's (a) fixing what ain't broken, and (b) making it even more unlikely > that we'll ever get to consensus on changing anything. We've managed to > agree that we need to change the names ending in "log"; let's do that > and be happy that we've removed one foot-gun from the system. Removing foot guns, un-sexy as it may be from a developer's perspective, is very useful work. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers