Re: pgsql: Coerce 'unknown' type parameters to the right type in the

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: pgsql: Coerce 'unknown' type parameters to the right type in the
Дата
Msg-id 4C6BF646.1030200@enterprisedb.com
обсуждение исходный текст
Ответ на Re: pgsql: Coerce 'unknown' type parameters to the right type in the  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On 18/08/10 16:57, Tom Lane wrote:
> heikki@postgresql.org (Heikki Linnakangas) writes:
>> Log Message:
>> -----------
>> Coerce 'unknown' type parameters to the right type in the fixed-params
>> parse_analyze() function. That case occurs e.g with PL/pgSQL
>> EXECUTE ... USING 'stringconstant'.
>
>> The coercion with a CoerceViaIO node. The result is similar to the coercion
>> via input function performed for unknown constants in coerce_type(),
>> except that this happens at runtime.
>
> Unfortunately, this entirely fails to enforce the rule that an unknown
> Param be coerced the same way everywhere.  You'd need a cleanup pass as
> well, cf check_variable_parameters().

Yeah, you're right. I'll find a way to do the cleanup pass in fixed
params case too.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Coerce 'unknown' type parameters to the right type in the
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Add missing handling of PlannedStmt.transientPlan in