pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: David Steele <david@pgmasters.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: Renaming of pg_xlog and pg_clog
Date: Thu, 20 Oct 2016 14:23:32 -0400
Message-ID: <23359.1476987812@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoatOc-mr0MjsYXSwmYo99uXFGcvRQq8FrV_x2aNBqkgwQ@mail.gmail.com>
References: <CAEepm=1JuojMSOt_C3FOGY+La_MBRyyHGH2U9yhmguYtA7MVBA@mail.gmail.com>
	<CAB7nPqR=SZNo_=B1ukwCiNn7aWDcw_dV0z-LG4ys9WF1N4a=uQ@mail.gmail.com>
	<CA+TgmobOyVNLA7DacLDY9yO_cBWMrkFfKSab6+Hrycu8Mh93Yw@mail.gmail.com>
	<CAB7nPqRD0=nuZOgODOEcPsGxj9+C_RAUyNFF+4UdUesCbif2tg@mail.gmail.com>
	<27318fb7-3784-fb82-7e5a-309b6277b487@pgmasters.net>
	<20161012153149.GF13284@tamriel.snowman.net>
	<CAB7nPqQob4jmVAPJo-1oubj7NeQXrgXa8Yzh_cz2KTXSgjMvtA@mail.gmail.com>
	<CA+TgmoY5bUx9qL1q=XwoGerQn0+BmhC4uQ0Mx-rUZqpQPG2qyg@mail.gmail.com>
	<20161020160500.GT13284@tamriel.snowman.net>
	<CA+TgmobYyo9gXcndVSyYR6aCNxmhZoHcn+rTao6RdLG5EOgk-Q@mail.gmail.com>
	<20161020173931.GA13605@momjian.us>
	<CA+TgmoayoFNHzr7UJkS36WdG04HS-7HRAxR3qUgyxEOXQrZ0Qg@mail.gmail.com>
	<22673.1476986971@sss.pgh.pa.us>
	<CA+TgmoatOc-mr0MjsYXSwmYo99uXFGcvRQq8FrV_x2aNBqkgwQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Oct 20, 2016 at 2:09 PM, Tom Lane <tgl@sss.pgh.pa.us> 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.  Are you proposing we rename them all with carpal-
tunnel-syndrome-promoting names?

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.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (139+ messages)  latest in thread

Message-ID: <23359.1476987812@sss.pgh.pa.us>
Permalink:  ../23359.1476987812@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23359.1476987812@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, bruce@momjian.us, sfrost@snowman.net, michael.paquier@gmail.com, david@pgmasters.net
  Subject: Re: Renaming of pg_xlog and pg_clog
  In-Reply-To: <23359.1476987812@sss.pgh.pa.us>
  References: <CAEepm=1JuojMSOt_C3FOGY+La_MBRyyHGH2U9yhmguYtA7MVBA@mail.gmail.com> <CAB7nPqR=SZNo_=B1ukwCiNn7aWDcw_dV0z-LG4ys9WF1N4a=uQ@mail.gmail.com> <CA+TgmobOyVNLA7DacLDY9yO_cBWMrkFfKSab6+Hrycu8Mh93Yw@mail.gmail.com> <CAB7nPqRD0=nuZOgODOEcPsGxj9+C_RAUyNFF+4UdUesCbif2tg@mail.gmail.com> <27318fb7-3784-fb82-7e5a-309b6277b487@pgmasters.net> <20161012153149.GF13284@tamriel.snowman.net> <CAB7nPqQob4jmVAPJo-1oubj7NeQXrgXa8Yzh_cz2KTXSgjMvtA@mail.gmail.com> <CA+TgmoY5bUx9qL1q=XwoGerQn0+BmhC4uQ0Mx-rUZqpQPG2qyg@mail.gmail.com> <20161020160500.GT13284@tamriel.snowman.net> <CA+TgmobYyo9gXcndVSyYR6aCNxmhZoHcn+rTao6RdLG5EOgk-Q@mail.gmail.com> <20161020173931.GA13605@momjian.us> <CA+TgmoayoFNHzr7UJkS36WdG04HS-7HRAxR3qUgyxEOXQrZ0Qg@mail.gmail.com> <22673.1476986971@sss.pgh.pa.us> <CA+TgmoatOc-mr0MjsYXSwmYo99uXFGcvRQq8FrV_x2aNBqkgwQ@mail.gmail.com> <23359.1476987812@sss.pgh.pa.us>

* 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