Re: Core dump running PL/Perl installcheck with bleadperl [PATCH]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Core dump running PL/Perl installcheck with bleadperl [PATCH]
Дата
Msg-id 17613.1267981886@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Core dump running PL/Perl installcheck with bleadperl [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Ответы Re: Core dump running PL/Perl installcheck with bleadperl [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Список pgsql-hackers
Tim Bunce <Tim.Bunce@pobox.com> writes:
> I encountered a core dump running PL/Perl installcheck with a very
> recent git HEAD of PostgreSQL and a not quite so recent git HEAD of perl.

> The cause is a subtle difference between SvTYPE(sv) == SVt_RV and
> SvROK(sv). The former is checking a low-level implementation detail
> while the later is directly checking "does this sv contains a reference".

Hmm.  Seems like this patch begs the question: if checking SvTYPE(*svp)
isn't safe, why is it safe to look at SvTYPE(SvRV(*svp))?  Shouldn't the
tests against SVt_PVHV be made more abstract as well?
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Explicit psqlrc
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: incorrect exit code from psql with single transaction + violation of deferred FK constraint