Lazier alternative to row_to_json ?

Поиск
Список
Период
Сортировка
От Florents Tselai
Тема Lazier alternative to row_to_json ?
Дата
Msg-id 43A856C7-353A-49CA-A99F-C1E81E8D5935@gmail.com
обсуждение исходный текст
Ответы Re: Lazier alternative to row_to_json ?
Список pgsql-general
I have the following simple query

select row_to_json(d) from documents d

The output of this goes to script that expects new-line-delimited stream of JSON objects.

But as-is, ti looks like the server’s memory fills-up before ti starts emitting results.

Any ideas how I could bypass this?




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

Предыдущее
От: Jimmy A
Дата:
Сообщение: Naked EXISTS vs SELECT EXISTS very different performance.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lazier alternative to row_to_json ?