Re: BUG #6212: PREPARE(pseudotype) should be blocked off

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6212: PREPARE(pseudotype) should be blocked off
Дата
Msg-id 10987.1316206100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6212: PREPARE(pseudotype) should be blocked off  (<Caleb.Welton@emc.com>)
Список pgsql-bugs
<Caleb.Welton@emc.com> writes:
> On Sep 16, 2011, at 11:11 AM, Tom Lane wrote:
>> Hmm.  It would require an extra catalog lookup per parameter to enforce
>> that.  Not sure that it's worth it just to prevent "peculiar" errors.
>> Can you point to any worse consequences?

> I haven't found any more severe issues and I'll agree its not a high priority item.  But the fix is simple enough
thatI don't see a reason to ignore it either. 

> The easiest fix would be, as you say, adding one extra syscache lookup:

If it were just PREPARE I'd have done it without quibbling; that isn't
something I regard as a critical performance path.  But if we're trying
to lock this out then we logically have to enforce the same restriction
in exec_parse_message, and that *is* a performance-critical path.  Plus
it has no existing catalog lookup that might be kluged to pass back the
extra information.

Maybe we should do it anyway, but I'd really like to see a more
significant reason.

            regards, tom lane

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

Предыдущее
От:
Дата:
Сообщение: Re: BUG #6212: PREPARE(pseudotype) should be blocked off
Следующее
От: Carlo Curatolo
Дата:
Сообщение: Re: BUG #5800: "corrupted" error messages (encoding problem ?)