Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxFx8-0006uC-V7 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 16:12:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bxFx8-0008VL-Cq for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 16:12:22 +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 1bxFx7-0008Th-1b for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 16:12:21 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxFx4-0001mJ-31 for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 16:12:20 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 144335F796; Thu, 20 Oct 2016 12:12:17 -0400 (EDT) Date: Thu, 20 Oct 2016 12:12:16 -0400 From: Stephen Frost To: Tom Lane Cc: Robert Haas , Christoph Berg , Bruce Momjian , Peter Eisentraut , Michael Paquier , Thomas Munro , Craig Ringer , Jim Nasby , PostgreSQL Hackers , Andres Freund Subject: Re: Renaming of pg_xlog and pg_clog Message-ID: <20161020161216.GU13284@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> <20161014171902.nb3hyg6koemwbzhb@msg.df7cb.de> <20161018220909.GA11661@momjian.us> <20161019110528.d5w7t6qnmpsosmjg@msg.df7cb.de> <4861.1476978513@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="W9axrxC8BiREIwSh" Content-Disposition: inline In-Reply-To: <4861.1476978513@sss.pgh.pa.us> 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: 12:05:03 up 103 days, 17:29, 22 users, load average: 0.00, 0.03, 0.08 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --W9axrxC8BiREIwSh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Robert Haas writes: > > One idea would be to rename pg_resetxlog to pg_resetwal. I think > > that's actually an improvement. >=20 > This would fit in as part of a general plan to s/xlog/wal/g throughout > our user-visible names and documentation. Which seems like a good idea > to me; there's no need to expose two different terms for the same thing. >=20 > (I don't feel a great need to unify the terminology in the code, though. > Just in stuff users see.) +1 on the general change of xlog -> wal. That said, I'd also like to see a --force or similar option or mechanism put in place to reduce the risk of users trashing their system because they think pg_resetwal is "safe." ("It's just gonna reset things to make the database start again, should be fine."). pg_destroydb almost seems like a better choice, though I suppose 'pg_clearwal' would be more acceptable. Doesn't have quite the same impact though. Not sure on the best answer here, but it's definitely foot-gun that some users have ended up using on themselves with depressing regularity. Thanks! Stephen --W9axrxC8BiREIwSh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYCOzgAAoJEO1sijiDR2RVaVcQAIyTc8NDlFsRWCIfMa85gsIs c9zZ+DqgJeAFm4TimBfJ2BDmY8MuiFwHhrF815yk60EqBMhIH4QdRjJx465z/IIF Ks8W3lOPbyezM/ZosImouLixV0BNTKKsOOEVrsA2kbD7y3vHlTRMld4vWGPRC93T I5O5MooAb6dn8ED3Ho0iPbC+mNythL+FFDGMIIV73H4+ZYcCdq7uS3NccjqBKIpL uxxx05v3IQxF7GfXSEYJF4Ub2pey9hjneJisBlZl4ymdVi77EelpyQ/9sFHOO3LQ 6IjVg4xBbxP9hdtPKGtBG5dNPSSvthwuZXG1bhPL50tlfFhd1dJHKrkLznc9lH5R SAr2364bQ0gUq9N8uzpMui4+6I55T9aYvKygTGMJFUoVPwMXvAvVGOaZeNQO2Svs je5ATT0+zJqBpbY5gn1+ezxKJR1Gz2OTrujp45iGVWDpafnJk9vq6OeZ3H5El+hq eLxv6XVeHayORrGT9ZcsASQymGcyreaauNZ1w02hx8x+ALIIGJsJEZFqC56485Go I8R23F9Q4X37KADqG6nLCJxd1fNC3DObFi7BZjsxwMhr1zXF/FW1MluvRu+Io5Zf ukEOA5Qq9Co9d1j8iT5N10aBtuT8jeBYRESCiEW2lWSVy8/qs5q77Dd/rGbShBJh 0akt5jo1BiOqdM6hi3GH =yh1C -----END PGP SIGNATURE----- --W9axrxC8BiREIwSh--