Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uerlu-0006D1-QO for pgsql-odbc@arkaria.postgresql.org; Tue, 21 May 2013 18:58:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Uerlu-0005iQ-5s for pgsql-odbc@arkaria.postgresql.org; Tue, 21 May 2013 18:58:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Uerls-0005hB-EL; Tue, 21 May 2013 18:58:52 +0000 Received: from mail-qa0-x22f.google.com ([2607:f8b0:400d:c00::22f]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Uerlp-0002yF-Be; Tue, 21 May 2013 18:58:52 +0000 Received: by mail-qa0-f47.google.com with SMTP id o13so2373228qaj.20 for ; Tue, 21 May 2013 11:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6nmG0mAUSpYBB5/sNbf2C3OP0N1JS4PEatmebmyezrE=; b=Yma7rzQkmxPjnIYzrKt5r4ws8pTHUSpe1Gpo3iKFSxAhB5/3V/I6ZsMbjVexgoNSyY +XdpmQem4QTEJb3sEa+9ChldpYwYH5oDb1H1HJjsJL/GczISEYcO/ejbWiLTRaGLdryK 5WtK6wpHOczF0ZiHOYyiqEueCy3+CTC/EhWI4/pmO98ECmW/2tC2Ucn74RDlgQM98dPe 4wKgMnqkI1+9+wh9wRJqtOvHaSzjcBzhbn7X7bj3zmuGvkFnzRpXUBWrnGQCX3DWCFgz UZWPlmL+V01Fvbb0ZEqX+EFbeJBhkVDzRoAa+B7QCGmVmw8iPak0gAK9mwGxHenLkkBK bFIg== MIME-Version: 1.0 X-Received: by 10.224.180.206 with SMTP id bv14mr4014743qab.56.1369162728313; Tue, 21 May 2013 11:58:48 -0700 (PDT) Received: by 10.229.135.195 with HTTP; Tue, 21 May 2013 11:58:48 -0700 (PDT) In-Reply-To: <519B14E7.3010806@vmware.com> References: <519B14E7.3010806@vmware.com> Date: Tue, 21 May 2013 11:58:48 -0700 Message-ID: Subject: Re: [GENERAL] ODBC constructs From: Dev Kumkar To: Heikki Linnakangas Cc: Atri Sharma , "pgsql-odbc@postgresql.org" , "pgsql-general@postgresql.org" Content-Type: multipart/alternative; boundary=20cf30684a710f978304dd3f0a03 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org --20cf30684a710f978304dd3f0a03 Content-Type: text/plain; charset=ISO-8859-1 On Mon, May 20, 2013 at 11:32 PM, Heikki Linnakangas < hlinnakangas@vmware.com> wrote: > libpq is generally-speaking better than psqlodbc. The advantage of ODBC is > that if you have a suitable driver, you can connect to other DBMS' as well, > while libpq will only work with PostgreSQL. Unless you need such > portability, go with libpq. > Thanks everyone for sharing comments, really useful ones. Yes the requirement is not connecting to other DBMS but only Postgres and libpq is the correct way so far from comments here. Regarding libpq performance wanted to discuss about connection polling like pgpool but I think a separate post of performance will make sense. So, coming back to the original question actually I am exploring on both fronts here - libpq and psqlODBC. Just one thought here, there is an existing ODBC business logic code which is talking to sybase database and now same code need to be ported to talk to postgres, then in this case will the use of psqlODBC quick way? Otherwise porting of ODBC business logic to libpq constructs needs to be done. Regards... --20cf30684a710f978304dd3f0a03 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On M= on, May 20, 2013 at 11:32 PM, Heikki Linnakangas <hlinnakangas@vmwar= e.com> wrote:
libpq is generally-speaki= ng better than psqlodbc. The advantage of ODBC is that if you have a suitab= le driver, you can connect to other DBMS' as well, while libpq will onl= y work with PostgreSQL. Unless you need such portability, go with libpq.

Thanks everyone for sharing comments, = really useful ones. Yes the requirement is not connecting to other DBMS but= only Postgres and libpq is the correct way so far from comments here. Rega= rding libpq performance wanted to discuss about connection polling like pgp= ool but I think a separate post of performance will make sense.

So, coming back to the original question actually I am exploring on bot= h fronts here - libpq and psqlODBC.
Just one thought here, there is an e= xisting ODBC business logic code which is talking to sybase database and no= w same code need to be ported to talk to postgres, then in this case will t= he use of psqlODBC quick way? Otherwise porting of ODBC business logic to li= bpq constructs needs to be done.

Regards...
--20cf30684a710f978304dd3f0a03--