That's just the lovely way windows handles a "segfault". Gotta be really
authorBruce Momjian <bruce@momjian.us>
Mon, 1 Nov 2004 19:21:50 +0000 (19:21 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 1 Nov 2004 19:21:50 +0000 (19:21 +0000)
commit7fad5fff0df0476ca80716153963d90c5776acf3
treea03f03925ff155854140f7c8c049bb682d8ff837
parent9c3d654a16b7f8299ea4a299c8c581ffd973fea1
That's just the lovely way windows handles a "segfault". Gotta be really
interesting for MS to catch all those dumps...

Anyway. Oops. Seems I ran my regression tests with the old psql, and
just managed to update the backend, when I tested that patch. Turns out
there are codepaths where we'd access the Critical Section before it was
initialized. Attached patch breaks the initializeation off to a separate
part and adds that one to a much earlier position in the program.

Magnus Hagander
src/bin/psql/common.c
src/bin/psql/common.h
src/bin/psql/startup.c