Thread: bootstrap does not init paths

bootstrap does not init paths

From
"Magnus Hagander"
Date:
Seems bootstrapmain() never called find_my_exec(), and therefor never
manged to fill in the path to the timezone directory. With the new
timezone code that actully picks up a decent timezone on my system, that
causes initdb to fail because it can't find any acceptable timezone at
all.

This patch adds the required call to bootstrapmain(), and initdb works
again for me. Code itself directly copied from postgresmain().


//Magnus


Attachment

Re: bootstrap does not init paths

From
Tom Lane
Date:
"Magnus Hagander" <mha@sollentuna.net> writes:
> This patch adds the required call to bootstrapmain(), and initdb works
> again for me. Code itself directly copied from postgresmain().

Applied, except I moved it up a little bit.  In the PostgresMain case
this is done before InitializeGUCOptions(), and it seems best to keep
the ordering consistent.

            regards, tom lane