Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'.
Дата
Msg-id 29028.1415826253@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #11335: an invalid prepare statement causes crash at log_statement = 'mod' or 'ddl'.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> On Sat, Sep 6, 2014 at 1:34 PM, Andres Freund <andres@2ndquadrant.com> wrote:
>>> On 2014-09-06 16:25:28 -0400, Tom Lane wrote:
>>>> I don't think this fix is either appropriate or adequate.

>>> Agreed (and commented offlist. Which probably was a mistake).

>> This has not been reverted yet. Wouldn't it be better to do that asap?

> Probably not until someone codes a better fix.  I have it on my plate
> to look into a better fix, but I've been horribly busy lately.

I've applied a fix that takes the approach of explicitly testing for
null plancache->raw_parse_tree whereever necessary.  There were at least
two places where there was no such test before; I think they are probably
unreachable with an empty query (because no replanning could ever be
needed) but it seems best to be consistent.

            regards, tom lane

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: BUG #11944: plpgsql if-case-then syntax error.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #11948: Error when installing PostgreSQL 9.3 server