pg.ddx.io  pgsql-testers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lou Picciano <loupicciano@comcast.net>
To: pgsql-testers@postgresql.org
Cc: Josh Berkus <josh@agliodbs.com>
Cc: Greg Smith <gsmith@gregsmith.com>
Subject: Re: alpha2 initdb PG_CONTROL_VERSION incompatibility?
Date: Wed, 4 Nov 2009 02:49:50 +0000 (UTC)
Message-ID: <1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> (raw)
In-Reply-To: <377036933.6647281257302965427.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>

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" <josh@agliodbs.com> 
To: "Lou Picciano" <loupicciano@comcast.net> 
Cc: pgsql-testers@postgresql.org, "Greg Smith" <gsmith@gregsmith.com> 
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 

view thread (6+ messages)  latest in thread

Message-ID: <1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
Permalink:  ../1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net/
Also on:    postgresql.org/message-id/1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net

 · 

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-testers@postgresql.org
  Cc: loupicciano@comcast.net, josh@agliodbs.com, gsmith@gregsmith.com
  Subject: Re: alpha2 initdb PG_CONTROL_VERSION incompatibility?
  In-Reply-To: <1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
  References: <377036933.6647281257302965427.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <1420936581.6647451257302990053.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>

* 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