Re: [HACKERS] C libpq frontend library fetchsize

2010-03-22 Thread Yeb Havinga
Robert Haas wrote: This seems pretty reasonable to me, especially considering that JDBC is apparently already doing it. I suppose there will always be projects that want to reimplement the backend protocol so that they can be "pure" some-language, but chipping away at the list of other reasons w

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-19 Thread Robert Haas
On Thu, Mar 18, 2010 at 1:21 PM, Yeb Havinga wrote: > Tom Lane wrote: >> >> Yeb Havinga writes: >> >>> >>> What if the default operation of e.g. php using libpq would be as >>> follows: set some default fetchsize (e.g. 1000 rows), then just issue >>> getrow. In the php pg handling, a function lik

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-18 Thread Yeb Havinga
Tom Lane wrote: Yeb Havinga writes: What if the default operation of e.g. php using libpq would be as follows: set some default fetchsize (e.g. 1000 rows), then just issue getrow. In the php pg handling, a function like getnextrow would wait for the first pgresult with 1000 rows. Then if t

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-18 Thread Tom Lane
Yeb Havinga writes: > What if the default operation of e.g. php using libpq would be as > follows: set some default fetchsize (e.g. 1000 rows), then just issue > getrow. In the php pg handling, a function like getnextrow would wait > for the first pgresult with 1000 rows. Then if the pgresult i

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-18 Thread Yeb Havinga
Robert Haas wrote: On Fri, Feb 26, 2010 at 3:28 PM, Yeb Havinga wrote: I'm wondering if there would be community support for adding using the execute message with a rownum > 0 in the c libpq client library, as it is used by the jdbc driver with setFetchSize. Not sure I follow what you

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-01 Thread Yeb Havinga
Takahiro Itagaki wrote: Yeb Havinga wrote I'm wondering if there would be community support for adding using the execute message with a rownum > 0 in the c libpq client library, as it is used by the jdbc driver with setFetchSize. The setFetchSize for libpq is difficult because of the in

Re: [HACKERS] C libpq frontend library fetchsize

2010-03-01 Thread Takahiro Itagaki
Yeb Havinga wrote: > I'm wondering if there would be community support for adding using the > execute message with a rownum > 0 in the c libpq client library, as it > is used by the jdbc driver with setFetchSize. The setFetchSize for libpq is difficult because of the interface mismatch -- lib

Re: [HACKERS] C libpq frontend library fetchsize

2010-02-27 Thread Robert Haas
On Fri, Feb 26, 2010 at 3:28 PM, Yeb Havinga wrote: > I'm wondering if there would be community support for adding using the > execute message with a rownum > 0 in the c libpq client library, as it is > used by the jdbc driver with setFetchSize. Not sure I follow what you're asking... what would

[HACKERS] C libpq frontend library fetchsize

2010-02-26 Thread Yeb Havinga
Hello list, I'm wondering if there would be community support for adding using the execute message with a rownum > 0 in the c libpq client library, as it is used by the jdbc driver with setFetchSize. kind regards, Yeb Havinga -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.