Re: Memory efficient insertion/retrieval of bytea

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory efficient insertion/retrieval of bytea
Дата
Msg-id 2870.1158763099@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Memory efficient insertion/retrieval of bytea  (Tomasz Ostrowski <tometzky@batory.org.pl>)
Ответы Re: Memory efficient insertion/retrieval of bytea  (Tomasz Ostrowski <tometzky@batory.org.pl>)
Список pgsql-general
Tomasz Ostrowski <tometzky@batory.org.pl> writes:
> Now for inserting data to a bytea we need 5*data_size in a buffer for
> escaped data representation. 6*data_size if we do PQescapeByteaConn
> in one chunk.

If you send the value as an out-of-line binary parameter then you don't
need any of that.  See PQexecParams.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Strange database corruption with PostgreSQL 7.4.x on Debian Sarge
Следующее
От: Matthias.Pitzl@izb.de
Дата:
Сообщение: Re: Strange database corruption with PostgreSQL 7.4.x o