Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> I've suffered from this pain before. The only thing that I have been
> able to do is run the initdb script by hand until the point of the
> crash, and then run the exact commands in postgres.bki using a
> standalone backend under a debugger. Believe me, it's not a
> particularly nice task. But I haven't found another way.
The initdb environment isn't particularly debugger-friendly. It'd seem
to me that bufmgr/relcache changes shouldn't impact the on-disk data
layout, and therefore could be tested and debugged in an already-created
installation.
regards, tom lane