X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6CD263A61E9 for ; Tue, 7 Dec 2004 14:16:40 +0000 (GMT) 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 83198-03 for ; Tue, 7 Dec 2004 14:16:33 +0000 (GMT) Received: from relay.snowman.net (relay.snowman.net [66.92.160.56]) by svr1.postgresql.org (Postfix) with ESMTP id 9EA1E3A61B2 for ; Tue, 7 Dec 2004 14:16:36 +0000 (GMT) Received: from ns.snowman.net (ns.snowman.net [10.10.0.2]) by relay.snowman.net (8.13.1/8.13.1/Debian-19) with ESMTP id iB7EGVmP026711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 7 Dec 2004 09:16:31 -0500 Received: from ns.snowman.net (localhost [127.0.0.1]) by ns.snowman.net (8.13.1/8.13.1/Debian-19) with ESMTP id iB7EGdKp029423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 7 Dec 2004 09:16:39 -0500 Received: (from sfrost@localhost) by ns.snowman.net (8.13.1/8.13.1/Submit) id iB7EGdC1029421; Tue, 7 Dec 2004 09:16:39 -0500 Date: Tue, 7 Dec 2004 09:16:38 -0500 From: Stephen Frost To: markw@mohawksoft.com Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Rewrite Message-ID: <20041207141638.GP10437@ns.snowman.net> Mail-Followup-To: markw@mohawksoft.com, pgsql-odbc@postgresql.org References: <16716.24.91.171.78.1102428945.squirrel@mail.mohawksoft.com> <20041207140239.GO10437@ns.snowman.net> <16608.24.91.171.78.1102430134.squirrel@mail.mohawksoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uRJ407LMRYUmu53i" Content-Disposition: inline In-Reply-To: <16608.24.91.171.78.1102430134.squirrel@mail.mohawksoft.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.4.24ns.3.0 (i686) X-Uptime: 09:13:58 up 311 days, 9:11, 7 users, load average: 0.12, 0.15, 0.14 User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/25 X-Sequence-Number: 4759 --uRJ407LMRYUmu53i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * markw@mohawksoft.com (markw@mohawksoft.com) wrote: > > * markw@mohawksoft.com (markw@mohawksoft.com) wrote: > >> Looking at both ODBC and libpq and I think that the difference is that > >> libpq aims to make PostgreSQL interfacing easy, while ODBC strives to = be > >> a > >> comprehensive SQL interface. 99% of what will be done with the ODBC > >> interface will be simple SQLAllocStmt, SQLPrepare, and SQLExecute. > > > > Saying what 99% of what the ODBC driver does isn't terribly useful- > > What's that 1% that libpq can't do? Having looked at the code, can you > > give us an idea on that? >=20 > Off the top of my head, binding data to the SQL statement, reusing > statements, stuff like that. Isn't this handled by PQexecParams and PQexecPrepared? > The ODBC API isn't designed to talk to any one database, so there are no > short cuts. Unfortunately, applications based on ODBC assume there are no > short cuts, and rely on that behavior. That's not particularly relevant- the question is if the existing libpq API is sufficient for the ODBC driver or not. Stephen --uRJ407LMRYUmu53i Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBtbtGrzgMPqB3kigRAsP2AJ9Qx3WFESAdbje++uYxa5/xo6JySACfZXX5 eh+Dvbnd7Mr9AnxY0SJGCVE= =7HS/ -----END PGP SIGNATURE----- --uRJ407LMRYUmu53i--