Tom Lane writes:

> Or possibly he's invoking the right initdb, but it's finding the wrong
> postgres binary.

Or the wrong template files? Run initdb --show to see.

> I wonder if we can get initdb to check that it's
> invoking the right version of 'postgres'?  A display of the version
> number wouldn't be a bad idea either.

I know I might have had a different opinion on this before but I'm
beginning to think that the path to any auxiliary programs needs to be
substituted into the script at build time. There's plenty of precedent for
this technique and there's probably very little reason to run a given
initdb with a different backend, and even if there is you'd need to go out
of your way anyhow. On the other hand, the amount of gratuitous problems
of the sort under consideration here should go to zero.

For 7.1 I'm hoping to get the --program-suffix like configure options
working, so the current scheme is going to blow up anyway. Something to
think about maybe.


-- 
Peter Eisentraut                  Sernanders väg 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Reply via email to