Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3C7AF9FA6B0 for ; Fri, 20 Oct 2006 22:04:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 11964-08 for ; Fri, 20 Oct 2006 22:04:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id E67EC9FB22A for ; Fri, 20 Oct 2006 22:04:17 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id i2so1729772nfe for ; Fri, 20 Oct 2006 18:04:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RBulDuAKnw28nOc0wzVAFPZnseImui1+j+FalBwbgknTcxXd8b1W5shiHmMS6HZRdextK9JLdei36G/84/xyiAo1ZCRDXlAqkf1u5OFvAUtMcg7GN8uWh/Vgvd+CVyZIEkz4qdu0FXz5aYEMjmhUd3JqlXRew0GqSzNflqFPJFo= Received: by 10.78.188.19 with SMTP id l19mr3070776huf; Fri, 20 Oct 2006 18:04:15 -0700 (PDT) Received: by 10.78.35.18 with HTTP; Fri, 20 Oct 2006 18:04:15 -0700 (PDT) Message-ID: Date: Sat, 21 Oct 2006 06:34:15 +0530 From: "Merlin Moncure" To: "Carlo Stonebanks" Subject: Re: Is ODBC that slow? Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.254 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200610/447 X-Sequence-Number: 21576 On 10/21/06, Carlo Stonebanks wrote: > Our Windows-based db server has to integrate with users that work regularily > with Access.When attempting to import user's data from Access MDB files to > PostgreSQL, we try on eof two things: either import using EMS SQL Manager's > Data Import from Access utility, or export from Access to Postgresql via an > odbc-based connectionin both cases, the performance is just awful. > Performance with Tcl's native postgres driver seems rather fine running from > Windows a Windows client, BTW. > > ODBC is often blamed for this sort of thing - I have the 8.01.02 release > dated 2006.01.31. Everything appears to be at its default setting. > > Is this the reason for the rather depressing performance fromt/to access and > can anything be done about it? i suspect the problem might be access...the odbc driver now uses libpq library over postgresql. first thing to do is to monitor what hundred sql statements access decides to write when you want to, say, look up a record. the results might suprise you! one gotcha that pops up now and then is that odbc clients somtimes experience wierd delays in certain configurations. afaik this has never been solved. 1. turn on full statement logging (log_statement='all'). i prefer to redirect everything to pg_log and rotate daily, with a month or so of log files going back. turning on log_duration helps. 2. tail the log, do random things in access and watch the fireworks. if nothing odd is really going on, then you may have an odbc issue. more than likely though, access is generating wacky sql. solution in this case is to code around that in access. merlin