Re: Problem with memory in C function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with memory in C function
Дата
Msg-id 749.1080355095@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with memory in C function  (Diogo Biazus <diogo@ikono.com.br>)
Ответы Re: Problem with memory in C function
Список pgsql-general
Diogo Biazus <diogo@ikono.com.br> writes:
> Am I doing something wrong?

You forgot to set up the length word that's required for a bytea value
(or any other variable-length datatype).  The system is taking the first
four bytes of the file data as the datum length.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Waiting for Commit
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Inserts get slower as table gets bigger