Re: cvs head initdb hangs on unixware

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cvs head initdb hangs on unixware
Дата
Msg-id 14084.1228832586@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cvs head initdb hangs on unixware  (ohp@pyrenet.fr)
Ответы Re: cvs head initdb hangs on unixware  (ohp@pyrenet.fr)
Список 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 по дате отправления:

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: WIP: default values for function parameters
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: new libpq SSL connection option