Re: [PROTOCOL TODO] Permit streaming of unknown-length lob/clob (bytea,text,etc)
От | David Fetter |
---|---|
Тема | Re: [PROTOCOL TODO] Permit streaming of unknown-length lob/clob (bytea,text,etc) |
Дата | |
Msg-id | 20141201143811.GA7121@fetter.org обсуждение исходный текст |
Ответ на | [PROTOCOL TODO] Permit streaming of unknown-length lob/clob (bytea,text,etc) (Craig Ringer <craig@2ndquadrant.com>) |
Ответы |
Re: [PROTOCOL TODO] Permit streaming of unknown-length
lob/clob (bytea,text,etc)
|
Список | pgsql-hackers |
On Mon, Dec 01, 2014 at 02:55:22PM +0800, Craig Ringer wrote: > Hi all > > Currently the client must know the size of a large lob/clob field, like > a 'bytea' or 'text' field, in order to send it to the server. This can > force the client to buffer all the data before sending it to the server. Yes, this is not good. > It would be helpful if the v4 protocol permitted the client to specify > the field length as unknown / TBD, then stream data until an end marker > is read. What's wrong with specifying its length in advance instead? Are you thinking of a one or more use cases where it's both large and unknown? Cheers, David. -- David Fetter <david@fetter.org> http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@gmail.com Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate
В списке pgsql-hackers по дате отправления: