bootstrap does not init paths

Started by Magnus Haganderabout 22 years ago2 messagespatches
Jump to latest
#1Magnus Hagander
magnus@hagander.net

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

Attachments:

bootstrap_init.patchapplication/octet-stream; name=bootstrap_init.patchDownload+8-0
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#1)
Re: bootstrap does not init paths

"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