Re: Segfault when restoring -Fd dump on current HEAD

Поиск
Список
Период
Сортировка
От Dmitry Dolgov
Тема Re: Segfault when restoring -Fd dump on current HEAD
Дата
Msg-id CA+q6zcWQN09BSTDFskDkeuHRRHDZCjdy=87qvJHG2XSurCzu8Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Segfault when restoring -Fd dump on current HEAD  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Segfault when restoring -Fd dump on current HEAD  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
> On Tue, Feb 26, 2019 at 11:53 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>
> On 2019-Feb-26, Dmitry Dolgov wrote:
>
> > Yes, it should be rather simple, we can e.g. return to the old less consistent
> > NULL handling approach something (like in the attached patch), or replace a NULL
> > value with an empty string in WriteToc. Give me a moment, I'll check it out. At
> > the same time I would suggest to keep replace_line_endings -> sanitize_line,
> > since it doesn't break compatibility.
>
> Hmm, shouldn't we modify sanitize_line so that it returns strdup(hyphen)
> when input is empty and want_hyphen, too?

Yes, you're right.

> I think it would be better to just put back the .defn = "" (etc) to the
> ArchiveEntry calls.

Then we should do this not only for defn, but for owner and dropStmt too. I can
update the fix patch I've sent before, if it's preferrable approach in this
particular situation. But I hope there are no objections if I'll then submit
the original changes with more consistent null handling separately to make
decision about them more consciously.


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: get_controlfile() can leak fds in the backend
Следующее
От: Etsuro Fujita
Дата:
Сообщение: Re: Oddity with parallel safety test for scan/join target in grouping_planner