Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D74A76336B0 for ; Tue, 3 Nov 2009 22:49:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66500-06 for ; Wed, 4 Nov 2009 02:49:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mail.postgresql.org (Postfix) with ESMTP id C90CD6334EB for ; Tue, 3 Nov 2009 22:49:50 -0400 (AST) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA04.westchester.pa.mail.comcast.net with comcast id 0ouk1d0041HzFnQ54qpqEV; Wed, 04 Nov 2009 02:49:50 +0000 Received: from sz0093.wc.mail.comcast.net ([76.96.58.151]) by OMTA14.westchester.pa.mail.comcast.net with comcast id 0qpq1d0013FmDic3aqpqMr; Wed, 04 Nov 2009 02:49:50 +0000 Date: Wed, 4 Nov 2009 02:49:50 +0000 (UTC) From: Lou Picciano To: pgsql-testers@postgresql.org Cc: Josh Berkus , Greg Smith Message-ID: <1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: <377036933.6647281257302965427.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Subject: Re: alpha2 initdb PG_CONTROL_VERSION incompatibility? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_335051_226243053.1257302990051" X-Originating-IP: [68.37.107.119] X-Mailer: Zimbra 5.0.18_GA_3076.RHEL5_64 (ZimbraWebClient - FF3.0 (Mac)/5.0.18_GA_3076.RHEL5_64) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200911/6 X-Sequence-Number: 11 ------=_Part_335051_226243053.1257302990051 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Josh, Greg, Thanks for your inputs. Yes, it makes perfect sense that we should have to re-initdb between versions - perfectly reasonable. But, to be clear, this wasn't what set this snowball in motion... Your responses piqued my interest... Remember, the core concern was that the 8.5alpha2 pg_ctrl reported that our 8.5alpha1-initdb'd cluster had in fact been initdb'd by 8.4! This got us concerned - as your diagnostic algorithm has suggested - that we had mistakenly built the cluster with the v8.4 initdb binary - and that all our testing thus far might have been against incorrect catalog structure, for example! So, the scientific process; I repeated the experiment: Built a new-from-scratch cluster, and initdb'd it with 8.5alpha1 in postgresql.conf, we edited only two parameters: listen_addresses = '*' and port = 5433 (we use this port for testing) Then, tried to start the alpha1 cluster with the alpha2 binary: FATAL: database files are incompatible with server DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 843, but the server was compiled with PG_CONTROL_VERSION 851. Again, only concern here is that the error message is misleading, and might set into motion quite a bit of redundant administrative work. Is it just that the PG_CONTROL_VERSIONs don't follow the binary numbering, and this point I simply haven't run into before? Lou Picciano PS - (Are you both speaking here - 'we' - as authors of PostgreSQL?) ----- Original Message ----- From: "Josh Berkus" To: "Lou Picciano" Cc: pgsql-testers@postgresql.org, "Greg Smith" Sent: Tuesday, November 3, 2009 6:26:58 PM GMT -05:00 US/Canada Eastern Subject: Re: [TESTERS] alpha2 initdb PG_CONTROL_VERSION incompatibility? Lou, > The start command we're testing with, for example (the only variable is > datapath: data-NEW vs. data-OLD): > # /usr/local/postgres/8.5-alpha2/bin/pg_ctl -D > /var/postgres/8.5-alpha2/data-NEW -l /var/postgres/8.5-alpha2/TEMPLOG start > (above works great, with an alpha2-init'd data cluster) Oh, I don't think there's been any attempt to tell alpha2 that it can accept an alpha1 InitDB. You have to re-initdb with each alpha. We're still making catalog changes. --Josh Berkus ------=_Part_335051_226243053.1257302990051 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: Verdana; font-size: 12pt; color: #000000'>Josh, G= reg,

Thanks for your inputs.  Yes, it makes perfect sense that = we should have to re-initdb between versions - perfectly reasonable.
But= , to be clear, this wasn't what set this snowball in motion...

Your= responses piqued my interest...  Remember, the core concern was that = the 8.5alpha2 pg_ctrl reported that our 8.5alpha1-initdb'd cluster had in f= act been initdb'd by 8.4!  This got us concerned - as your diagnostic = algorithm has suggested - that we had mistakenly built the cluster with the= v8.4 initdb binary - and that all our testing thus far might have been aga= inst incorrect catalog structure, for example!

So, the scientific pr= ocess; I repeated the experiment:

Built a new-from-scratch cluster, = and initdb'd it with 8.5alpha1
in postgresql.conf, we edited only two pa= rameters:
listen_addresses =3D '*' and port =3D 5433 (we use this port f= or testing)

Then, tried to start the alpha1 cluster with the alpha2 = binary:

FATAL:  database files are incompatible with server
= DETAIL:  The database cluster was initialized with PG_CONTROL_VERSION = 843, but the server was compiled with PG_CONTROL_VERSION 851.

Again,= only concern here is that the error message is misleading, and might set i= nto motion quite a bit of redundant administrative work.  Is it just t= hat the PG_CONTROL_VERSIONs don't follow the binary numbering, and this poi= nt I simply haven't run into before?

Lou Picciano

PS -  = (Are you both speaking here - 'we' - as authors of PostgreSQL?)

----= - Original Message -----
From: "Josh Berkus" <josh@agliodbs.com>To: "Lou Picciano" <loupicciano@comcast.net>
Cc: pgsql-testers@p= ostgresql.org, "Greg Smith" <gsmith@gregsmith.com>
Sent: Tuesday, = November 3, 2009 6:26:58 PM GMT -05:00 US/Canada Eastern
Subject: Re: [T= ESTERS] alpha2 initdb PG_CONTROL_VERSION incompatibility?

Lou,
> The start command we're testing with, for example (the only variable= is
> datapath: data-NEW vs. data-OLD):
> # /usr/local/postgres= /8.5-alpha2/bin/pg_ctl -D
> /var/postgres/8.5-alpha2/data-NEW -l /var= /postgres/8.5-alpha2/TEMPLOG start
> (above works great, with an alph= a2-init'd data cluster)

Oh, I don't think there's been any attempt t= o tell alpha2 that it can
accept an alpha1 InitDB.  You have to re-= initdb with each alpha.   We're
still making catalog changes.
--Josh Berkus

------=_Part_335051_226243053.1257302990051--