Re: [HACKERS] vlen in libpq using user defined data type
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] vlen in libpq using user defined data type |
| Дата | |
| Msg-id | 6821.905437552@sss.pgh.pa.us обсуждение |
| Ответ на | vlen in libpq using user defined data type (David Hartwig <daveh@insightdist.com>) |
| Список | pgsql-hackers |
David Hartwig <daveh@insightdist.com> writes:
> Anyway, as pqlib reads the string sent to it by the backend (a la psql),
> it must first read the length of each string. The problem is that the
> length of the string for accntnum in some outrageously large number
> which ultimately hangs psql. BTW, atttypemod = -1 and typlen = 4 in
> the FE.
Is this fixed by the patch I sent in last night? Your description does
not sound like what I would expect. The bug I fixed was that PQfsize()
would return 65535 instead of -1 for a varlen field. But neither libpq
nor psql make use of that value (which is why I hadn't noticed it was
broken). Are you using some other frontend code that does depend on
PQfsize to return the right thing?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера