Re: [BUGS] BUG #5487: dblink failed with 63 bytes connection names

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Re: [BUGS] BUG #5487: dblink failed with 63 bytes connection names
Дата
Msg-id 20100603100753.931D.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #5487: dblink failed with 63 bytes connection names  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote:

> Well, looking at the callers, most if not all of them seem to actually
> pass a palloc'd copy, allocated by text_to_cstring().
>
> Should we throw a NOTICE like vanilla truncate_identifier() does?
>
> I feel it would be better to just call truncate_identifier() than roll
> your own. Assuming we want the same semantics in dblink, we'll otherwise
> have to remember to update truncate_identifier_copy() with any changes
> to truncate_identifier().

That makes sense. Now I use truncate_identifier(warn=true) for the fix.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ALTER TABLE .... make constraint DEFERRABLE
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: recovery getting interrupted is not so unusual as it used to be