From m.fuehrer@hm-software.de Wed Mar 24 09:56:07 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 28957D1EBB0 for ; Wed, 24 Mar 2004 09:56:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93708-06 for ; Wed, 24 Mar 2004 05:56:06 -0400 (AST) Received: from db01.celleweb.de (unknown [212.68.90.4]) by svr1.postgresql.org (Postfix) with ESMTP id 72474D1DF8B for ; Wed, 24 Mar 2004 05:56:02 -0400 (AST) Received: from SERVER02 (p3EE26C4C.dip.t-dialin.net [62.226.108.76]) (authenticated bits=0) by db01.celleweb.de (8.12.8/8.12.6) with ESMTP id i2OA5PcH000871 for ; Wed, 24 Mar 2004 11:05:26 +0100 X-KENId: 0000398EKEN1D00AA9B X-KENRelayed: 0000398EKEN1D00AA9B@SERVER02 Received: from 192.168.1.59:2447 by KEN! (192.168.1.2:25) with SMTP ; Wed, 24 Mar 2004 10:56:58 +0100 Date: Wed, 24 Mar 2004 10:59:25 +0100 From: =?iso-8859-1?Q?Maximilian_F=FChrer?= Subject: Performance-problem To: Message-Id: <000a01c41186$b0998f00$3b01a8c0@mfnotebook> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C4118F.12255AD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.4 tagged_above=0.0 required=5.0 tests=HTML_50_60, HTML_MESSAGE, RCVD_IN_NJABL, RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200403/83 X-Sequence-Number: 3885 This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C4118F.12255AD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hallo, if have a problem with the performance of the ODBC-driver. i need i 10x faster. ODBC driver version :psqlodbc-07_03_0200 PostgreSQL database version : 7.3 yours faithfully, Maximilian F=FChrer ------=_NextPart_000_0007_01C4118F.12255AD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hallo,
if have a problem with the performance of = the=20 ODBC-driver.
i need i 10x faster.
 
OD= BC driver=20 version :psqlodbc-07_03_0200
PostgreSQL database version : 7.3
 
yours faithfully,
Maximilian F=FChrer
------=_NextPart_000_0007_01C4118F.12255AD0-- From jorgens@coho.net Fri Mar 26 20:51:27 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EAE2FD1DB90 for ; Fri, 26 Mar 2004 20:51:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 57452-04 for ; Fri, 26 Mar 2004 16:51:32 -0400 (AST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by svr1.postgresql.org (Postfix) with ESMTP id A5FC4D1D803 for ; Fri, 26 Mar 2004 16:51:23 -0400 (AST) Received: from sjdev01 (c-24-20-228-102.client.comcast.net[24.20.228.102]) by comcast.net (rwcrmhc11) with SMTP id <2004032620513001300fsqhie>; Fri, 26 Mar 2004 20:51:30 +0000 Received: by localhost with Microsoft MAPI; Fri, 26 Mar 2004 13:01:33 -0800 Message-ID: <01C41332.76A65000.jorgens@coho.net> From: Steve Jorgensen Reply-To: "jorgens@coho.net" To: "'pgsql-odbc@postgresql.org'" Subject: Re: Performance-problem Date: Fri, 26 Mar 2004 13:01:18 -0800 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/84 X-Sequence-Number: 3886 Are you sure the ODBC driver is the culprit in the problem you are having? Could it be the speed of the query, or the speed of the network over which you are connecting, perhaps? It would help if you describe your issue in more detail. On Wednesday, March 24, 2004 1:59 AM, Maximilian Fuhrer [SMTP:m.fuehrer@hm-software.de] wrote: > Hallo, > if have a problem with the performance of the ODBC-driver. > i need i 10x faster. > > ODBC driver version :psqlodbc-07_03_0200 > PostgreSQL database version : 7.3 > > yours faithfully, > Maximilian Fuhrer > << File: ATT00288.html >> From psql@shemesh.biz Sat Mar 27 07:50:07 2004 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BD2A7D1D2E3 for ; Sat, 27 Mar 2004 07:50:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89512-05 for ; Sat, 27 Mar 2004 03:50:01 -0400 (AST) Received: from smtp2.actcom.co.il (mail.actcom.co.il [192.114.47.15]) by svr1.postgresql.org (Postfix) with ESMTP id 6DCF5D1ED4E for ; Sat, 27 Mar 2004 03:49:53 -0400 (AST) Received: from shemesh.biz (line102-130.adsl.actcom.co.il [192.117.102.130]) by smtp2.actcom.co.il (8.12.8/8.12.8) with ESMTP id i2R7nnRi013416; Sat, 27 Mar 2004 09:49:49 +0200 Message-ID: <4065321C.8010105@shemesh.biz> Date: Sat, 27 Mar 2004 09:49:48 +0200 From: Shachar Shemesh Organization: Lingnu Open Systems Consulting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040312 Debian/1.6-3 X-Accept-Language: en, he MIME-Version: 1.0 To: "jorgens@coho.net" Cc: "'pgsql-odbc@postgresql.org'" Subject: Re: Performance-problem References: <01C41332.76A65000.jorgens@coho.net> In-Reply-To: <01C41332.76A65000.jorgens@coho.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/85 X-Sequence-Number: 3887 I've had the exact same issue. I also debugged it until I found out exactly what the problem was. I didn't have the time to sit down and fix it, though. When you open a non-readonly cursor, the ODBC performs a select that has the oid and ctid fields added in. This is done to bypass the fact that postgresql has no updateable cursors support. When you try to actually get the information from the query, each line you ask for is another select! The performance hit I get compared to the same query running over SQL Server is 1:10 (sounds familiar?). The solution: If you can afford it - make the query readonly. This will make the ODBC use a regular cursor, and the problem is gone. If you cannot afford it - the driver will need to be fixed. What I thought for a fix - add the oid and ctid as before, but make that a readonly cursor. If and when an update request arrives, do the proper select as usual. Shachar Steve Jorgensen wrote: >Are you sure the ODBC driver is the culprit in the problem you are having? > Could it be the speed of the query, or the speed of the network over which >you are connecting, perhaps? It would help if you describe your issue in >more detail. > >On Wednesday, March 24, 2004 1:59 AM, Maximilian Fuhrer >[SMTP:m.fuehrer@hm-software.de] wrote: > > >>Hallo, >>if have a problem with the performance of the ODBC-driver. >>i need i 10x faster. >> >>ODBC driver version :psqlodbc-07_03_0200 >>PostgreSQL database version : 7.3 >> >>yours faithfully, >>Maximilian Fuhrer >> << File: ATT00288.html >> >> >> -- Shachar Shemesh Lingnu Open Systems Consulting http://www.lingnu.com/