Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv7Wk-0007YL-Jn for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 18:48:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bv7Wk-0000Nj-6i for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Oct 2016 18:48:18 +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 1bv7Wj-0000Nd-Jk for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 18:48:17 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bv7Wh-0002IR-06 for pgsql-hackers@postgresql.org; Fri, 14 Oct 2016 18:48:16 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 976325F7B2; Fri, 14 Oct 2016 14:48:14 -0400 (EDT) Date: Fri, 14 Oct 2016 14:48:14 -0400 From: Stephen Frost To: Magnus Hagander Cc: 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: <20161014184814.GF13284@tamriel.snowman.net> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Se9Fau8C8gEtdaPx" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 14:45:37 up 97 days, 20:09, 20 users, load average: 0.00, 0.03, 0.09 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.3 (--) 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 --Se9Fau8C8gEtdaPx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Magnus Hagander (magnus@hagander.net) wrote: > On Fri, Oct 14, 2016 at 4:35 AM, Stephen Frost wrote: > > * Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote: > > > On 10/12/16 11:22 AM, Tom Lane wrote: > > > > The main problem we're trying to fix here is people thinking that > > > > something with "log" in the name contains discardable data. Just > > > > relocating the directory without renaming it won't improve that. > > > > > > I think it would help if we moved it to something like > > > "internal/pg_xlog" and "internal/pg_clog". Keep the name but move it > > > out of sight. > > > > I disagree that this will materially help with the issue. > > > > > We have a tool called pg_xlogdump in the standard installation. init= db > > > has an option --xlogdir, pg_basebackup has --xlog and others. Renami= ng > > > the xlog directory would make this all a bit confusing, unless we're > > > prepared to rename the programs and options as well. > > > > pg_xlogdump is not a user-facing tool, frankly, so I don't believe we > > should be terribly concerned about either leaving it named as-is or > > renaming it. I agree that we should consider adding alternative names > > to the options for initdb and pg_basebackup. >=20 > Ugh. Changing the names of those options are probably going to break a > *lot* of things, a lot more than changing the names of the directories. Is > it really worth doing that? Especially if we are even more clear that > people should not be touching those directories in the first place. I would point out that I said "adding alternative names", not "change/remove the existing options." That said, while I like the general idea of "make everything referring to transaction log/write-ahead xlog/xlog/wal/whatever refer in the same way", I'm not sure that it's a really pressing issue or that changing the name of the directory should drive those other changes. > Those are just the tip of the iceberg. We do use the term xlog in a lot of > places (almost as many as wal, but that's a different problem) True, and yes, we should consider the places that already talk about "wal", but, overall, I believe we can take this one step at a time and don't have to do everything all at once simply because we're changing the directory name. We're not changing what it *is*, after all. Thanks! Stephen --Se9Fau8C8gEtdaPx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYAShuAAoJEO1sijiDR2RVq2cP/A+6M+Xtpq2dDx0LW+HtItI7 ZAyhJFEcH2ewelfCigq2a7PnFW2VS8CgMh+qmQ3MJuWEo8S0hxlRDsDLUsJVel3I kW6IwLjggPSSiyV6pmsWxMAiDCOZP7opTPOxlc/dD81Wol0P3LRJDUuiUa4WM0i9 K7uykFuwf6Xgs1QVw8AT1u+Qpa7O/2fSHlOyvo1L9OfY/CiqoZ/CmtVkmZONjrSh zKd3CP0Er9IKsXH3W2xb4AO+zdQMs6onz0ulO+2XlAfHgYA0KnSQplsAscgMdvSQ g2VesnWIptTojYflqGnISWWxFa6Hdui97fhhQg7WLk9kvoEir13xDsX3Ti3zs88U x5ok/08FbwpcslvxuE6CIGq87nNVqZ4v+Lxj00ubzNyrLOIBkujYiR54saXvSrms aA1PS/uh36xGvIXEez8/8TTBHyo1kGL6m20b8JiRMPuE54KG3E2eiIH0+48zlId4 CLS5yf1prgxrldDDqXTuM7qtejwfPODYroh2AezUQoIfBPKYjAiv0GttSLIoRFN5 O1+e2zO0Xh1/NVd35pg5liBpRS0UdjWF5Q64wvujNdTtIr9czTOjqZ9cHIp/nCkc cr1JMJobad/Kw6xgLMXtmPokxZuv/QJqW+IyzXvW/zG+txmwwgRynf6oFZoB1riC FZOYsC9xHL2DIE0jOGem =9VaJ -----END PGP SIGNATURE----- --Se9Fau8C8gEtdaPx--