Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beSgq-0006q4-5Y for pgsql-odbc@arkaria.postgresql.org; Mon, 29 Aug 2016 19:57:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beSgp-0006QZ-OX for pgsql-odbc@arkaria.postgresql.org; Mon, 29 Aug 2016 19:57:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beSgT-00062E-Cr for pgsql-odbc@postgresql.org; Mon, 29 Aug 2016 19:57:29 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beSgP-0001nb-Hz for pgsql-odbc@postgresql.org; Mon, 29 Aug 2016 19:57:28 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 245CB206DD; Mon, 29 Aug 2016 15:57:24 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 29 Aug 2016 15:57:24 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=GFnQq+DYUdw67XbbFtCo9MI5Yo4=; b=hSJPVl af2S4kUsPKb/JTENQ4efJCdyfVUQXuu/fxeERAxXDfRee7hX8/doeTwsSF2A0iUq J1sS9ZPbm1u3BPzrySEcLoLyOxzL52HX+SXgDkzJiPVwPEaeYq3e0MLmvhD6Wizh BF/Bqgg2AV9899AD1oNYB8ZnAkx13ORRiJcA0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=GFnQq+DYUdw67Xb bFtCo9MI5Yo4=; b=PPuI2X/jpgwUpuhJpeC0ulwz9nS36a+jPLNhYBnMeFDyrzY 4vUFZwW5HMieyq11Jf/opqzzUxeIyWo+36qh3upJUylXnroGyJAAUOIYQYpSuIdX wZvAOqaFScFPR3/d5F3XBpxgb024P0t97lTMi3XIrxUjFX8GeBlm5kims1qA= X-Sasl-enc: tlZO6i08X+unXyqw+9bZUMIr7KgIDLVspXK77ELK/61s 1472500643 Received: from [192.168.1.2] (174-24-167-180.tukw.qwest.net [174.24.167.180]) by mail.messagingengine.com (Postfix) with ESMTPA id 8AB14F29CC; Mon, 29 Aug 2016 15:57:23 -0400 (EDT) Subject: Re: speed issue To: "Dockerty Kevin (WORCESTERSHIRE ACUTE HOSPITALS NHS TRUST)" , "pgsql-odbc@postgresql.org" References: <63d1bfe5824445ef88cc7c445cbd9f8b@NH-HEPEX101.AD1.NHS.NET> From: Adrian Klaver Message-ID: <150c8577-352f-e936-20b7-a4686a3fe220@aklaver.com> Date: Mon, 29 Aug 2016 12:57:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <63d1bfe5824445ef88cc7c445cbd9f8b@NH-HEPEX101.AD1.NHS.NET> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) 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 On 08/29/2016 03:15 AM, Dockerty Kevin (WORCESTERSHIRE ACUTE HOSPITALS NHS TRUST) wrote: > Hi > > > > I am using the Postgres ODBC driver ( lastest version that I recently > downloaded ) Probably does not matter in this case, but the actual version number would be helpful. Mainly because latest is a point in time thing and if the problem does turn out to be version related issue then it would be helpful to those that run across this thread in the future to know what version is being discussed. > > > > I am using this via a SQL server linked server ( SQL Server 2008r2 ), > running on 64bit Windows Server Can you elaborate more on what the actual setup is? In particular the ODBC driver settings. > > > > The connection works fine, but I find that queries are very slow to > execute – even simple queries ( select * from [small_table] ) > > > > Using PGAdmin III the same queries will run in a couple of seconds or less. Are you running PGAdmin from the same machine as the SQL server? In other words is there a difference in the network path between the two programs? > > > > Any ideas why I experience this slow response time ? Is there anything in the Postgres logs that might help? > > > > Regards, > > > > > > *Kevin Dockerty* > > *Head of Development** > *Worcestershire Acute Hospital NHS Trust > > 2^nd Floor, No. 3 King’s Court, Worcestershire Royal Hospital, WR51DD > > > > Tel: 01905 763333 (ext 38567) > > *k.dockerty@nhs.net * > > www.worcsacute.nhs.uk > > > > > > ******************************************************************************************************************** > > This message may contain confidential information. If you are not the > intended recipient please inform the > sender that you have received the message in error before deleting it. > Please do not disclose, copy or distribute information in this e-mail or > take any action in reliance on its contents: > to do so is strictly prohibited and may be unlawful. > > Thank you for your co-operation. > > NHSmail is the secure email and directory service available for all NHS > staff in England and Scotland > NHSmail is approved for exchanging patient data and other sensitive > information with NHSmail and GSi recipients > NHSmail provides an email address for your career in the NHS and can be > accessed anywhere > For more information and to find out how you can switch, visit > www.nhsdigital.nhs.uk/nhsmail > > ******************************************************************************************************************** -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc