Re: pgsql: Create libpgcommon, and move pg_malloc et al to it

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: "Alvaro Herrera" <alvherre(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Create libpgcommon, and move pg_malloc et al to it
Date: 2013-02-12 16:45:59
Message-ID: ce53af55a96fcd9704f5b6d1743e8e2e.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, February 12, 2013 17:19, Alvaro Herrera wrote:
> Erik Rijkers wrote:
>> On Tue, February 12, 2013 17:01, Alvaro Herrera wrote:
>> > Erik Rijkers wrote:
>> >> On Tue, February 12, 2013 15:55, Alvaro Herrera wrote:
>> >> > Create libpgcommon, and move pg_malloc et al to it
>> >> >
>> >>
>> >> If at all possible, it would be handy (for testers) if initdb-forcing commits are flagged as
>> >> such.
>> >
>> > Hmm? I don't think this patch requires an initdb at all. It doesn't
>> > touch the database contents at all, does it?
>> >
>> > Patches that force an initdb are flagged as such by bumping
>> > CATALOG_VERSION_NO.
>> >
>>
>> I got this:
>>
>> The database cluster was initialized with PG_CONTROL_VERSION 934, but the server was compiled
>> with
>> PG_CONTROL_VERSION 935
>> HINT: It looks like you need to initdb
>>
>>
>> But I immediately admit that I could well be mistaken; it may have been an older commit that
>> triggered this complaint of 'needing initdb' on this particular machine. My apologies.
>
> Ah, yes, that's 62401db45c.
>
> I'm not sure are you suggesting, though. Are you saying that the commit
> message should explicitely state "this patch requires initdb" or some
> such?
>

I was under the impression that this was habitually done in commit messages, but looking back
through the commitlog messages it's not all that clear although sometimes catversion bumps are
explicitly mentioned.

Let's just say that an explicit mention/warning is useful for me, so probably for some others too.
At the same time I'll start monitoring PG_CONTROL_VERSION and CATALOG_VERSION a bit more closely.
That's easy enough too of course...

Thanks,

Erik Rijkers

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-02-12 18:27:21 Re: pgsql: Create libpgcommon, and move pg_malloc et al to it
Previous Message Alvaro Herrera 2013-02-12 16:19:21 Re: pgsql: Create libpgcommon, and move pg_malloc et al to it

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2013-02-12 16:55:49 Re: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]
Previous Message Alvaro Herrera 2013-02-12 16:19:21 Re: pgsql: Create libpgcommon, and move pg_malloc et al to it