libpq request results
"Michael GUIARD" <[email protected]> Tue, 26 Jul 2005 10:46:36 +0200
| Newsgroups | gmane.comp.db.postgresql.devel.win32 |
|---|---|
| Message-ID | <008801c591be$893a24b0$027ba8c0@NSTMike> |
This is a multi-part message in MIME format. ------=_NextPart_000_0085_01C591CF.4B79D2E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi ! I hope I choose the correct mailing list and I hope my question has not = been already asked. Correct me if I wrong. I do not understand something : what is the difference between this = mailing list and the newsgroup : news.postrgesql.org ? My question concerning postgre sql libpq :=20 I'd like to use database support in my application. My application are=20 written in C++ and oftenly I do not use complex database. So I want to use libpq library to manage db from my applications. When I make a request like SELECT ... the result is downloaded = completely=20 through network. The problem is that I have to wait the end of the = download=20 before viewing some results (for many result rows and with a poor = network=20 connection I have to wait a lot). I tried to use anychronous methos but = the=20 problem is the same : my application is not locked during result = retreiving=20 (good) but I can't present any results until the download is finished. Is it possible to ask Postgre engine for a request, then wait for the = end of=20 the request : postgre gives me the total result rows and then ask for=20 downloading the rows separately ? thanks Mike=20 ------=_NextPart_000_0085_01C591CF.4B79D2E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#e9e7e2> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>Hi !<BR><BR>I=20 hope I choose the correct mailing list and I hope my question has not = been=20 already asked.<BR>Correct me if I wrong.</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>I do not=20 understand something : what is the difference between this mailing = list and=20 the newsgroup : news.postrgesql.org ?<BR></FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3>My question=20 concerning postgre sql libpq : </FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" = size=3D3><BR>I'd like to=20 use database support in my application. My application are <BR>written = in C++=20 and oftenly I do not use complex database.<BR>So I want to use libpq = library to=20 manage db from my applications.<BR><BR>When I make a request like SELECT = ... the=20 result is downloaded completely <BR>through network. The problem is that = I have=20 to wait the end of the download <BR>before viewing some results (for = many result=20 rows and with a poor network <BR>connection I have to wait a lot). I = tried to=20 use anychronous methos but the <BR>problem is the same : my application = is not=20 locked during result retreiving <BR>(good) but I can't present any = results until=20 the download is finished.<BR><BR>Is it possible to ask Postgre engine = for a=20 request, then wait for the end of <BR>the request : postgre gives me the = total=20 result rows and then ask for <BR>downloading the rows separately=20 ?<BR><BR>thanks<BR>Mike </FONT><BR></DIV></FONT></BODY></HTML> ------=_NextPart_000_0085_01C591CF.4B79D2E0--