From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: postgresql@pleasedontspam.me
Subject: BUG #15447: Dramatic slowdown in psqlODBC when a debugger is attached to the process
Date: Fri, 19 Oct 2018 23:49:45 +0000
Message-ID: <15447-42756e79c14b1d9b@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15447
Logged by: Pierre le Riche
Email address: postgresql@pleasedontspam.me
PostgreSQL version: 10.5
Operating system: Windows 10 X64 1803
Description:
I've been comparing the performance of various database back-ends and ODBC
drivers and I've noticed that the psqlODBC driver slows down dramatically
when a debugger is attached to the application process - up to an order of
magnitude or more. In particular the SQLExecDirect, SQLFetch and
SQLMoreResults calls are severely affected. In my case I am using the
Embarcadero Delphi IDE for my application development and when I run the
application without debugging the performance is comparable to other
drivers, but when I run the application with the debugger attached opening
an SQL query becomes really slow. I have also tested the Devart ODBC driver
for PostgreSQL and it doesn't exhibit this problem. The MySQL and MSSQL ODBC
drivers also do not show any noticeable slowdown when the application is run
with the Delphi debugger attached. I have tested with both 32-bit and 64-bit
applications and psqlODBC drivers and the results are the same. I have
tested with both the latest psqlODBC driver as well as an older one (v8),
also with the same result. I have scanned through the latest psqlODBC
source, but nothing jumps out at me so I am at a bit of a loss as to what
can be causing this.
Thanks!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, postgresql@pleasedontspam.me
Subject: Re: BUG #15447: Dramatic slowdown in psqlODBC when a debugger is attached to the process
In-Reply-To: <15447-42756e79c14b1d9b@postgresql.org>
References: <15447-42756e79c14b1d9b@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox