pg.ddx.io  pgsql-committers@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: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Rename "pg_clog" directory to "pg_xact".
Date: Fri, 17 Mar 2017 12:15:48 -0400
Message-ID: <12947.1489767348@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+Tgmoaqfp5KKUC2wLwxPJKU4BEtWao6-sVhONNVYqGPwNTTVA@mail.gmail.com>
References: <E1cosOo-0001xW-84@gemulon.postgresql.org>
	<29494.1489759480@sss.pgh.pa.us>
	<CA+Tgmoaqfp5KKUC2wLwxPJKU4BEtWao6-sVhONNVYqGPwNTTVA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Mar 17, 2017 at 10:04 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There should probably have been a catversion bump in here.

> I thought about it, but:

>  * The catalog version number is used to flag incompatible changes in
>  * the PostgreSQL system catalogs.  Whenever anyone changes the format of
>  * a system catalog relation, or adds, deletes, or modifies standard
>  * catalog entries in such a way that an updated backend wouldn't work
>  * with an old database (or vice versa), the catalog version number
>  * should be changed.

I think the key part of that is "an updated backend wouldn't work
with an old database (or vice versa)", which is certainly true of
this commit.  In general, there ought to be a version bump somewhere
anytime that a developer would have to re-initdb or pg_upgrade.
In some cases you can bump the WAL page version or something else
that's more specific to the change, but catversion is the fallback
solution otherwise.

> I see your point, of course, I'm just explaining why I didn't do it.

Understood, but I think you're wrong.

			regards, tom lane


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



view thread (4+ messages)

Message-ID: <12947.1489767348@sss.pgh.pa.us>
Permalink:  ../12947.1489767348@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12947.1489767348@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: pgsql: Rename "pg_clog" directory to "pg_xact".
  In-Reply-To: <12947.1489767348@sss.pgh.pa.us>
  References: <E1cosOo-0001xW-84@gemulon.postgresql.org> <29494.1489759480@sss.pgh.pa.us> <CA+Tgmoaqfp5KKUC2wLwxPJKU4BEtWao6-sVhONNVYqGPwNTTVA@mail.gmail.com> <12947.1489767348@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