Re: use of dblink_build_sql_insert() induces a server crash

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: use of dblink_build_sql_insert() induces a server crash
Дата
Msg-id 4B69D0E2.4000703@joeconway.com
обсуждение исходный текст
Ответ на Re: use of dblink_build_sql_insert() induces a server crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 02/03/2010 10:18 AM, Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>> The problem exists with all three dblink_build_sql_* functions. Here is
>> a more complete patch. If there are no objections I'll apply this to
>> HEAD and look at back-patching -- these functions have hardly been
>> touched since inception.
>
> Do you really need to copy the relation tupdesc when you only are going
> to make a one-time check of the number of attributes?  This coding would
> make some sense if you intended to use the tupdesc again later in the
> functions, but it appears you don't.
>
> Also, what about cases where the relation contains dropped columns ---
> it's not obvious whether this test is correct in that case.

Good input, as always. Here's another whack at it.

Thanks,

Joe


Вложения

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

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Re: Add on_trusted_init and on_untrusted_init to plperl UPDATED [PATCH]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PG 9.0 and standard_conforming_strings