Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxJBz-0002EV-Tm for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 19:39: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 1bxJBy-0005GE-Qm for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2016 19:39:54 +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 1bxJAb-0003ix-HQ for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 19:38:29 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bxJAX-00050O-Av for pgsql-hackers@postgresql.org; Thu, 20 Oct 2016 19:38:28 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2F7BF5F799; Thu, 20 Oct 2016 15:38:24 -0400 (EDT) Date: Thu, 20 Oct 2016 15:38:24 -0400 From: Stephen Frost To: David Fetter Cc: Tom Lane , Robert Haas , Bruce Momjian , Michael Paquier , David Steele , PostgreSQL mailing lists Subject: Re: Renaming of pg_xlog and pg_clog Message-ID: <20161020193823.GV13284@tamriel.snowman.net> References: <20161020160500.GT13284@tamriel.snowman.net> <20161020173931.GA13605@momjian.us> <22673.1476986971@sss.pgh.pa.us> <23359.1476987812@sss.pgh.pa.us> <20161020185239.GA11687@fetter.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZeKMDbS2zcU1/kmZ" Content-Disposition: inline In-Reply-To: <20161020185239.GA11687@fetter.org> 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: 15:33:08 up 103 days, 20:57, 22 users, load average: 0.12, 0.10, 0.13 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 --ZeKMDbS2zcU1/kmZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * David Fetter (david@fetter.org) wrote: > 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. > > >>=20 > > >> Personally I'd go for "pg_trans", but it's only a weak preference. > >=20 > > > Heaven forfend we actually use enough characters to make it self-docu= menting. > >=20 > > $ ls $PGDATA > > PG_VERSION pg_dynshmem/ pg_notify/ pg_stat_tmp/ postgresql.a= uto.conf > > base/ pg_hba.conf pg_replslot/ pg_subtrans/ postgresql.c= onf > > global/ pg_ident.conf pg_serial/ pg_tblspc/ postmaster.o= pts > > pg_clog/ pg_logical/ pg_snapshots/ pg_twophase/ postmaster.p= id > > pg_commit_ts/ pg_multixact/ pg_stat/ pg_wal/ > >=20 > > I don't see one single one of those subdirectory names that I'd call > > self-documenting. >=20 > 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. I disagree that excessivly long names for files or directories are useful and should be fully self-documenting. We should name our directories with useful hints at what they are used for that remind those who are knowledgable where things live. Secondary to that is using an approach to naming which avoid implying anything about the directories to those who are *not* knowledgable, which leads us to the current discussion regarding the removal of directories with 'log' in the name. Individuals who are not knowledgable in this area are not going to get any more benefit from a directory named 'pg_trans' or 'pg_transaction_status' than one named 'pg_clog' or 'pg_xact' and therefore this whole line of reasoning is a red herring. Thanks! Stephen --ZeKMDbS2zcU1/kmZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYCR0vAAoJEO1sijiDR2RVficQAJkfectf39KqRsLV13Iu/SbZ wWfpDlZLzu2nt9YnFBSJiVhyF8A1QGbyx8uNoFHApFZnOB3+Vajy+GN4BxA6HPub 4k7cF5tpHorFOWS9jEUZ7iBy5URqsF11qdO67X1+kAiaOuBF4x1ELIZlxdYASXai MdwHkCwF2DqK0YziczJ/KPpghzfTEoSPkkKWxhQ4humtoX6etmbwa5Hch3xfmaI/ FCIusyd6t4lRaiRfpU0GrlZfySNKq4xZ2DSbErZCfUMmQh4rL505iqDY5cWGJLa2 fMDGOmHfg7Nvs6w9bNGIFjM0cIkMWbLZ6xdCOUTe3dnmkQgviy+M1UeaqTJmXflF oKwAKELPzyMkK/HvcXC+zn9Pj7O0BQmutz4yedRv0+ygde6w0Z2152+B7PL1FwME +JCYLGiFghZziy0oq1npy6rI8DbFCyyzbT7hH5cniqaA7UzmkIwgS8muvV31/CCd DI8OcS+DO7PN87d08JDn3W0c8XqrDtQVUXF4WinLPG0KhbsroxJdsEROf1iUgvjP ubAMbDX/NNhpG/fRBwr4vjhv74Bt0bHJL/qlTRa0Y8ThkdG7DVpz7IjkKH4Nhlxb VYAf/C5JwaWihCrqt1ERMZC+GhNg55YN3LO2W/CZ2aKFDUEv9Q8DkuDKGwRNInq+ KTYIaGywu6Z75+Pq3Syj =P5yl -----END PGP SIGNATURE----- --ZeKMDbS2zcU1/kmZ--