pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
streaming access to bytea data 3+ messages / 2 participants [nested] [flat]
* streaming access to bytea data @ 2006-03-17 23:51 David Durham <ddurham@vailsys.com> 0 siblings, 1 reply; 3+ messages in thread From: David Durham @ 2006-03-17 23:51 UTC (permalink / raw) To: pgsql-jdbc Hi all, I've got a couple questions regarding bytea columns and streaming. 1 - Does Postgres server load the entire bytea column before sending to clients? Might not be the right list for the previous question, but I thought someone might know. 2 - Does the current postgres jdbc driver support streaming reads/writes of bytea columns? I saw in the archives that someone submitted a patch for streaming writes, but I didn't see anything regarding reads. If the jdbc driver doesn't currently support streaming reads, are there any plans to add this feature? Any particular technical hurdles? Thanks, Dave ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: streaming access to bytea data @ 2006-03-18 00:21 Kris Jurka <books@ejurka.com> parent: David Durham <ddurham@vailsys.com> 0 siblings, 1 reply; 3+ messages in thread From: Kris Jurka @ 2006-03-18 00:21 UTC (permalink / raw) To: David Durham <ddurham@vailsys.com>; +Cc: pgsql-jdbc On Fri, 17 Mar 2006, David Durham wrote: > 1 - Does Postgres server load the entire bytea column before sending to > clients? Yes. > Might not be the right list for the previous question, but I thought someone > might know. > > 2 - Does the current postgres jdbc driver support streaming reads/writes of > bytea columns? I saw in the archives that someone submitted a patch for > streaming writes, but I didn't see anything regarding reads. The JDBC driver can stream the write to the server, but the server will still read the entire stream before writing it to disk, so it's a client only streaming. > If the jdbc driver doesn't currently support streaming reads, are there any > plans to add this feature? Any particular technical hurdles? > The JDBC driver doesn't support streaming reads, nor does any other client interface. You would need to extend the frontend/backend protocol to return some sort of pointer to the bytea reference rather than the whole thing. This will still require the server to store the whole bytea result somewhere to allow it to be pointed to. Perhaps you should think about using large objects instead of bytea? Kris Jurka ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: streaming access to bytea data @ 2006-03-18 00:27 David Durham <ddurham@vailsys.com> parent: Kris Jurka <books@ejurka.com> 0 siblings, 0 replies; 3+ messages in thread From: David Durham @ 2006-03-18 00:27 UTC (permalink / raw) To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc Kris Jurka wrote: > On Fri, 17 Mar 2006, David Durham wrote: > >> 1 - Does Postgres server load the entire bytea column before sending >> to clients? > > Yes. ok > The JDBC driver doesn't support streaming reads, nor does any other > client interface. You would need to extend the frontend/backend > protocol to return some sort of pointer to the bytea reference rather > than the whole thing. This will still require the server to store the > whole bytea result somewhere to allow it to be pointed to. > > Perhaps you should think about using large objects instead of bytea? Thanks for the quick response, and the exact information that I needed. Unfortunately large objects don't work with Slony replication. Thanks again, Dave ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-03-18 00:27 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2006-03-17 23:51 streaming access to bytea data David Durham <ddurham@vailsys.com> 2006-03-18 00:21 ` Kris Jurka <books@ejurka.com> 2006-03-18 00:27 ` David Durham <ddurham@vailsys.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox