Re: cvs head initdb hangs on unixware - Mailing list pgsql-hackers

From Tom Lane
Subject Re: cvs head initdb hangs on unixware
Date
Msg-id 14084.1228832586@sss.pgh.pa.us
Whole thread Raw
In response to Re: cvs head initdb hangs on unixware  (ohp@pyrenet.fr)
Responses Re: cvs head initdb hangs on unixware  (ohp@pyrenet.fr)
List pgsql-hackers
ohp@pyrenet.fr writes:
> Guess what! with the fprintf .. descending node... in place, everything 
> goes well. The optimizer definitly does something weird along the 
> definition/assignement of leftok/rightok..

Hmm, so the problem is in that second loop.  The trick is to pick some
reasonably non-ugly code change that makes the problem go away.

The first thing I'd try is to get rid of the overly cute optimization
int rightnodeno = leftnodeno + 1;

and make it just read
int rightnodeno = rightchild(nodeno);

If that doesn't work, we might try refactoring the code enough to get
rid of the goto, but that looks a little bit tedious.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: WIP: default values for function parameters
Next
From: Magnus Hagander
Date:
Subject: Re: new libpq SSL connection option