X-Original-To: pgsql-hackers-win32-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 587C052C83 for ; Tue, 26 Jul 2005 05:46:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45571-05 for ; Tue, 26 Jul 2005 08:46:39 +0000 (GMT) Received: from smtp12.wanadoo.fr (smtp12.wanadoo.fr [193.252.22.20]) by svr1.postgresql.org (Postfix) with ESMTP id 01E4152823 for ; Tue, 26 Jul 2005 05:46:37 -0300 (ADT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1206.wanadoo.fr (SMTP Server) with ESMTP id 969001C00092 for ; Tue, 26 Jul 2005 10:46:38 +0200 (CEST) Received: from NSTMike (APoitiers-101-1-1-5.w193-251.abo.wanadoo.fr [193.251.25.5]) by mwinf1206.wanadoo.fr (SMTP Server) with ESMTP id 32B381C0009A for ; Tue, 26 Jul 2005 10:46:38 +0200 (CEST) X-ME-UUID: 20050726084638207.32B381C0009A@mwinf1206.wanadoo.fr Message-ID: <008801c591be$893a24b0$027ba8c0@NSTMike> Reply-To: "Michael GUIARD" From: "Michael GUIARD" To: Subject: libpq request results Date: Tue, 26 Jul 2005 10:46:36 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0085_01C591CF.4B79D2E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 tagged_above=0 required=5 tests=HTML_30_40, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200507/45 X-Sequence-Number: 3288 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
Hi !

I=20 hope I choose the correct mailing list and I hope my question has not = been=20 already asked.
Correct me if I wrong.
I do not=20 understand something : what is the difference between this mailing = list and=20 the newsgroup : news.postrgesql.org ?
My question=20 concerning postgre sql libpq :

I'd like to=20 use database support in my application. My application are
written = in C++=20 and oftenly I do not use complex database.
So I want to use libpq = library to=20 manage db from my applications.

When I make a request like SELECT = ... the=20 result is downloaded completely
through network. The problem is that = I have=20 to wait the end of the download
before viewing some results (for = many result=20 rows and with a poor network
connection I have to wait a lot). I = tried to=20 use anychronous methos but the
problem is the same : my application = is not=20 locked during result retreiving
(good) but I can't present any = results until=20 the download is finished.

Is it possible to ask Postgre engine = for a=20 request, then wait for the end of
the request : postgre gives me the = total=20 result rows and then ask for
downloading the rows separately=20 ?

thanks
Mike

------=_NextPart_000_0085_01C591CF.4B79D2E0--