Re: fetching bytea (blob) data of 850 MB from psql client failed

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: fetching bytea (blob) data of 850 MB from psql client failed
Дата
Msg-id 20220901043913.GA1001056@rfd.leadboat.com
обсуждение исходный текст
Ответ на Re: fetching bytea (blob) data of 850 MB from psql client failed  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-bugs
On Mon, Aug 22, 2022 at 05:52:29PM +0700, John Naylor wrote:
> If the data is binary and not printable ASCII, then there is no easy
> workaround.

I would say the chief solution is to request binary transmission in your
application.  This cuts your network traffic in half for retrieving a bytea,
so it's a good change even if the server improves someday.  If you're using
libpq, search for show_binary_results in
https://www.postgresql.org/docs/devel/libpq-example.html to see an example of
doing this.  I don't know of an equivalent option in ODBC; if there is none,
one could modify the ODBC driver to use the same protocol feature that libpq
uses.



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #17349: Function gen_random_uuid duplicates in pgcrypto and core
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17603: Problem running the post-install step. Installation may not complete correctly.