pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Christoph Berg <myon@debian.org>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Craig Ringer <craig.ringer@2ndquadrant.com>
Cc: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: Renaming of pg_xlog and pg_clog
Date: Thu, 20 Oct 2016 12:12:16 -0400
Message-ID: <20161020161216.GU13284@tamriel.snowman.net> (raw)
In-Reply-To: <4861.1476978513@sss.pgh.pa.us>
References: <CAB7nPqRD0=nuZOgODOEcPsGxj9+C_RAUyNFF+4UdUesCbif2tg@mail.gmail.com>
	<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>
	<CA+TgmoYWdoPqDA5Gd4o_rLqbk3-yCRvg3=b7BfkjVwJ_zR+0Ow@mail.gmail.com>
	<4861.1476978513@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > One idea would be to rename pg_resetxlog to pg_resetwal.  I think
> > that's actually an improvement.
> 
> 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.
> 
> (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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (139+ messages)  latest in thread

Message-ID: <20161020161216.GU13284@tamriel.snowman.net>
Permalink:  ../20161020161216.GU13284@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20161020161216.GU13284@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, myon@debian.org, bruce@momjian.us, peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, thomas.munro@enterprisedb.com, craig.ringer@2ndquadrant.com, Jim.Nasby@bluetreble.com, andres@anarazel.de
  Subject: Re: Renaming of pg_xlog and pg_clog
  In-Reply-To: <20161020161216.GU13284@tamriel.snowman.net>
  References: <CAB7nPqRD0=nuZOgODOEcPsGxj9+C_RAUyNFF+4UdUesCbif2tg@mail.gmail.com> <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> <CA+TgmoYWdoPqDA5Gd4o_rLqbk3-yCRvg3=b7BfkjVwJ_zR+0Ow@mail.gmail.com> <4861.1476978513@sss.pgh.pa.us> <20161020161216.GU13284@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox