This is a discussion on Protocol 3, Execute, maxrows to return, impact? within the pgsql Hackers forums, part of the PostgreSQL category; --> Gregory Stark wrote: >"Abhijit Menon-Sen" <ams@oryx.com> writes: >>> Interleaved retrieval using multiple portals is not what most >>> libraries ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Gregory Stark wrote: >"Abhijit Menon-Sen" <ams@oryx.com> writes: >>> Interleaved retrieval using multiple portals is not what most >>> libraries support, I'd guess. >> My code did support that mode of operation in theory, but in practice >> in the few situations where I have needed to use something like it, I >> found it more convenient to open explicit cursors and FETCH from them >Note that using FETCH for each record means a round trip to the server for >each record. If you're dealing with a lot of records that could be a lot >slower than streaming them to the client as quickly as it can consume them. >Now I'm not sure anyone's actually done any experiments to optimize libpq or >other drivers to stream data efficiently, so I'm not sure how much you would >really lose in practice today. My Pike drivers now support multiple simultaneous portals and automatic streaming by presending overlapping Execute statements with a dynamically adapted fetchlimit calculated per select as the query progresses. The only support still lacking is COPY. -- Sincerely, Stephen R. van den Berg. In this signature, the concluding three words `were left out'. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| Stephen R. van den Berg wrote: >My Pike drivers now support multiple simultaneous portals and >automatic streaming by presending overlapping Execute statements with >a dynamically adapted fetchlimit calculated per select as the query >progresses. They also support COPY now. The driver beats libpq in speed by about 62%. The memory consumption is on demand, by row, and not the whole result set. Transport to and from the query is in binary and dynamically determined per datatype, no quoting necessary. Anyone interested in taking a peek at the (GPL copyright) driver, I temporarily put up a small package which contains the working driver in Pike at: http://admin.cuci.nl/psgsql.pike.tar.gz Pike is a C/C++/Java like interpreted language. The production driver uses a PGsql assist class which is written in C to accelerate (amazingly) few core functions (not included, but the driver works fully without the PGsql assist class). -- Sincerely, Stephen R. van den Berg. "There are 10 types of people in the world. Those who understand binary and those who do not." -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| I replied to this post, yesterday. Yet I don't see my reply appear, could it have been caught in a spamfilter or something? -- Sincerely, Stephen R. van den Berg. "Even if man could understand women, he still wouldn't believe it." -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| On 27-Jul-08, at 3:00 PM, Stephen R. van den Berg wrote: > Stephen R. van den Berg wrote: >> My Pike drivers now support multiple simultaneous portals and >> automatic streaming by presending overlapping Execute statements with >> a dynamically adapted fetchlimit calculated per select as the query >> progresses. > > They also support COPY now. > > The driver beats libpq in speed by about 62%. > The memory consumption is on demand, by row, and not the whole > result set. > Transport to and from the query is in binary and dynamically > determined > per datatype, no quoting necessary. > > Anyone interested in taking a peek at the (GPL copyright) driver, I > temporarily put up a small package which contains the working driver > in Pike at: > > http://admin.cuci.nl/psgsql.pike.tar.gz > This is very exciting news, I'd love to look at it, is there any way it could be re-licensed so that it can be incorporated into say the jdbc driver ? Dave -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| Dave Cramer wrote: >On 27-Jul-08, at 3:00 PM, Stephen R. van den Berg wrote: >>Stephen R. van den Berg wrote: >>The driver beats libpq in speed by about 62%. >>Anyone interested in taking a peek at the (GPL copyright) driver, I >>temporarily put up a small package which contains the working driver >>in Pike at: >> http://admin.cuci.nl/psgsql.pike.tar.gz >This is very exciting news, I'd love to look at it, is there any way >it could be re-licensed so that it can be incorporated into say the >jdbc driver ? Since I wrote it, I can relicense it any which way I want. What kind of license would you like to have? -- Sincerely, Stephen R. van den Berg. "Even if man could understand women, he still wouldn't believe it." -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| On Mon, 2008-07-28 at 18:45 +0200, Stephen R. van den Berg wrote: > Dave Cramer wrote: > >On 27-Jul-08, at 3:00 PM, Stephen R. van den Berg wrote: > >>Stephen R. van den Berg wrote: > >>The driver beats libpq in speed by about 62%. > > >>Anyone interested in taking a peek at the (GPL copyright) driver, I > >>temporarily put up a small package which contains the working driver > >>in Pike at: > > >> http://admin.cuci.nl/psgsql.pike.tar.gz > > >This is very exciting news, I'd love to look at it, is there any way > >it could be re-licensed so that it can be incorporated into say the > >jdbc driver ? > > Since I wrote it, I can relicense it any which way I want. > What kind of license would you like to have? The JDBC driver and PostgreSQL itself are BSD licensed: http://jdbc.postgresql.org/license.html http://www.postgresql.org/about/licence Sincerely, Joshua D. Drake > -- > Sincerely, > Stephen R. van den Berg. > > "Even if man could understand women, he still wouldn't believe it." > -- The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQL Community Conference: http://www.postgresqlconference.org/ United States PostgreSQL Association: http://www.postgresql.us/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| On 28-Jul-08, at 12:45 PM, Stephen R. van den Berg wrote: > Dave Cramer wrote: >> On 27-Jul-08, at 3:00 PM, Stephen R. van den Berg wrote: >>> Stephen R. van den Berg wrote: >>> The driver beats libpq in speed by about 62%. > >>> Anyone interested in taking a peek at the (GPL copyright) driver, I >>> temporarily put up a small package which contains the working driver >>> in Pike at: > >>> http://admin.cuci.nl/psgsql.pike.tar.gz > >> This is very exciting news, I'd love to look at it, is there any way >> it could be re-licensed so that it can be incorporated into say the >> jdbc driver ? > > Since I wrote it, I can relicense it any which way I want. > What kind of license would you like to have? As Joshua mentioned BSD is the preferred postgresql license. As I understand it I can't even look at your code and subsequently use anything in the JDBC driver Dave > > -- > Sincerely, > Stephen R. van den Berg. > > "Even if man could understand women, he still wouldn't believe it." > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| On Jul 28, 2008, at 1:54 PM, Dave Cramer wrote: > > On 28-Jul-08, at 12:45 PM, Stephen R. van den Berg wrote: > >> Dave Cramer wrote: >>> On 27-Jul-08, at 3:00 PM, Stephen R. van den Berg wrote: >>>> Stephen R. van den Berg wrote: >>>> The driver beats libpq in speed by about 62%. >> >>>> Anyone interested in taking a peek at the (GPL copyright) driver, I >>>> temporarily put up a small package which contains the working >>>> driver >>>> in Pike at: >> >>>> http://admin.cuci.nl/psgsql.pike.tar.gz >> >>> This is very exciting news, I'd love to look at it, is there any way >>> it could be re-licensed so that it can be incorporated into say the >>> jdbc driver ? >> >> Since I wrote it, I can relicense it any which way I want. >> What kind of license would you like to have? > > As Joshua mentioned BSD is the preferred postgresql license. As I > understand it I can't even look at your code and subsequently use > anything in the JDBC driver The GPL does not cover implementation ideas, not to mention that the author just described the implementation. Furthermore, one could not "take" anything from the Pike driver for the JDBC driver because it is a completely different language. It seems like you confused the GPL with an NDA. Anyway, what does "The driver beats libpq in speed by about 62%" mean? Cheers, M -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| |||
| Dave Cramer wrote: >>Since I wrote it, I can relicense it any which way I want. >>What kind of license would you like to have? >As Joshua mentioned BSD is the preferred postgresql license. As I >understand it I can't even look at your code and subsequently use >anything in the JDBC driver I'll relicense it under a BSD license, so you can use it. Watch this space. -- Sincerely, Stephen R. van den Berg. "Even if man could understand women, he still wouldn't believe it." -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |
| ||||
| On 7/27/08, Stephen R. van den Berg <srb@cuci.nl> wrote: > > Stephen R. van den Berg wrote: > >My Pike drivers now support multiple simultaneous portals and > >automatic streaming by presending overlapping Execute statements with > >a dynamically adapted fetchlimit calculated per select as the query > >progresses. > > > They also support COPY now. > > The driver beats libpq in speed by about 62%. > The memory consumption is on demand, by row, and not the whole result set. > Transport to and from the query is in binary and dynamically determined > per datatype, no quoting necessary. > > Anyone interested in taking a peek at the (GPL copyright) driver, I > temporarily put up a small package which contains the working driver > in Pike at: > > http://admin.cuci.nl/psgsql.pike.tar.gz I'd love to take a look at the code, but the link seems to be 404'd at the moment. |