Re: FW: getting a crash during initdb - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: FW: getting a crash during initdb
Date
Msg-id 200404261725.i3QHPuI11709@candle.pha.pa.us
Whole thread Raw
In response to Re: FW: getting a crash during initdb  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
List pgsql-hackers
Merlin Moncure wrote:
> > I have no idea what caused the pg_depend stuff to crash.
> 
> The AV is in postgres.exe following the first SQL call in
> setup_depend().  The problem is not in initdb (it hasn't changed) but
> something in the backend.  Changing the SQL statement made no
> difference: I'd venture a guess that postgres.exe crashes when *any*
> statement is sent to it.  About 20 files have changed since my last
> initdb; I have a list.  Forced initdb + initdb crash = nasty bug, even
> if it's just the cvs version (specific only to windows?).  
> 
> I'll check why the rmdir command is not working as expected.

I just poked around and couldn't figure out the cause.  Initdb should
either remove the directory if it created it, or remove everything _in_
the directory if the directory already existed.  I tried the rmdir/del
/s /q commands in a CMD window and it worked fine.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Thread code not vpath-safe
Next
From: "Jim C. Nasby"
Date:
Subject: Re: What can we learn from MySQL?