Re: Current CVS tip segfaulting

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Current CVS tip segfaulting
Дата
Msg-id 10019.1083382596@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Current CVS tip segfaulting  (Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>)
Ответы Re: Current CVS tip segfaulting  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-hackers
Alvaro Herrera Munoz <alvherre@dcc.uchile.cl> writes:
> strace'ing the postmaster suggested me that the dbname string in
> utils/init/postinit.c, the InitPostgres function, is the culprit.
> In fact, if I apply the following patch to tcop/postgres.c the
> whole thing stops happening.

>         else if (argc - optind == 1)
> !           dbname = argv[optind];
> ...
>         else if (argc - optind == 1)
> !           dbname = pstrdup(argv[optind]);

Surely this is a red herring --- that code path does not even execute
except in the case of a standalone backend.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Timezone library on Unix
Следующее
От: Vinay Jain
Дата:
Сообщение: Re: Is there any method to keep table in memory at startup