pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedpsqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
8+ messages / 3 participants
[nested] [flat]
* psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
@ 2016-07-04 13:31 Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
0 siblings, 1 reply; 8+ messages in thread
From: Jan-Peter Seifert @ 2016-07-04 13:31 UTC (permalink / raw)
To: pgsql-odbc
Hello,
it looks like SQL_QUERY_TIMEOUT is on by default - causing dead connections with long running statements:
"SQLSTATE = 00000 Native Error = 26 Could not send Query(connection dead)"
I tested with 9.3.400 (without problems) as well.
How can I disable it? Adding "statement_timeout = 0" to the "Connect Settings" field on Advance Options Page 2?
Could you tell me, please?
Thank you very much!
Best regards,
Peter
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
@ 2016-07-07 01:51 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
0 siblings, 1 reply; 8+ messages in thread
From: Tsunakawa, Takayuki @ 2016-07-07 01:51 UTC (permalink / raw)
To: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; pgsql-odbc
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jan-Peter Seifert
> it looks like SQL_QUERY_TIMEOUT is on by default - causing dead connections
> with long running statements:
>
> "SQLSTATE = 00000 Native Error = 26 Could not send Query(connection dead)"
No, SQL_QUERY_TIMEOUT is off by default.
I've just confirmed that "SET statement_timeout" is not issued when I executed "SELECT pg_sleep(60);" with isql command of the unixODBC. In addition, SQL_QUERY_TIMEOUT just terminates the query, retaining the database connection. Your message seems to show that the connection was terminated.
Could you show the mylog output?
Regards
Takayuki Tsunakawa
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
@ 2016-07-08 13:34 ` Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-11 01:18 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 02:55 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
0 siblings, 2 replies; 8+ messages in thread
From: Jan-Peter Seifert @ 2016-07-08 13:34 UTC (permalink / raw)
To: Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>; +Cc: pgsql-odbc
Hello Tsunakawa-san,
thank you very much for your reply!
> No, SQL_QUERY_TIMEOUT is off by default.
How would you set it then - via connect settings?
> I've just confirmed that "SET statement_timeout" is not issued when I executed "SELECT pg_sleep(60);" with isql command of the unixODBC. In addition, SQL_QUERY_TIMEOUT just terminates the query, retaining the database connection. Your message seems to show that the connection was terminated.
You are right. It seems that there was a network problem when I tried the update before. It completed using v9.5.300 without problems.
> Could you show the mylog output?
I have the mylog output. However, there was another problem. When using 9.5.300 all the the check boxes for the logs were disabled (greyed out) - even when creating a new ODBC DSN. When using 9.3.400 everything is okay.
Best regards,
Peter
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
@ 2016-07-11 01:18 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
1 sibling, 0 replies; 8+ messages in thread
From: Tsunakawa, Takayuki @ 2016-07-11 01:18 UTC (permalink / raw)
To: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; +Cc: pgsql-odbc
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jan-Peter Seifert
> > No, SQL_QUERY_TIMEOUT is off by default.
>
> How would you set it then - via connect settings?
psqlODBC follows the ODBC standard; i.e. the function call SQLSetStmtAttr(SQL_QUERY_TIMEOUT, timeout_seconds) does that. psqlODBC also allows setting with SQLSetConnectAttr(). ADO's CommandTimeout uses these functions behind the scenes.
> > I've just confirmed that "SET statement_timeout" is not issued when I
> executed "SELECT pg_sleep(60);" with isql command of the unixODBC. In
> addition, SQL_QUERY_TIMEOUT just terminates the query, retaining the
> database connection. Your message seems to show that the connection was
> terminated.
>
> You are right. It seems that there was a network problem when I tried the
> update before. It completed using v9.5.300 without problems.
I'm relieved to hear that.
> > Could you show the mylog output?
>
> I have the mylog output. However, there was another problem. When using
> 9.5.300 all the the check boxes for the logs were disabled (greyed out)
> - even when creating a new ODBC DSN. When using 9.3.400 everything is okay.
I've just reproduced the grey-out phenomenon, too. It doesn't happen with at least 09.05.0100. Having a quick look at the diff between 09.05.0100 and 09.05.0300, I couldn't find any suspicious modification. I'd like to ask for help from other developers.
Regards
Takayuki Tsunakawa
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
@ 2016-07-12 02:55 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 03:57 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
1 sibling, 1 reply; 8+ messages in thread
From: Tsunakawa, Takayuki @ 2016-07-12 02:55 UTC (permalink / raw)
To: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; +Cc: pgsql-odbc
Hi, Inoue-san,
> I have the mylog output. However, there was another problem. When using
> 9.5.300 all the the check boxes for the logs were disabled (greyed out)
> - even when creating a new ODBC DSN. When using 9.3.400 everything is okay.
The attached is a patch to fix this. Could you commit this?
Regards
Takayuki Tsunakawa
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
enable_logging_gui.patch (application/octet-stream, 1.7K) download
diff -Nacr a/dlg_wingui.c b/dlg_wingui.c
*** a/dlg_wingui.c 2016-06-17 22:56:17.000000000 +0900
--- b/dlg_wingui.c 2016-07-12 11:57:51.000000000 +0900
***************
*** 171,179 ****
ShowWindow(GetDlgItem(hdlg, DRV_MSG_LABEL2), enable ? SW_SHOW : SW_HIDE);
CheckDlgButton(hdlg, DRV_COMMLOG, comval->commlog);
- #ifndef Q_LOG
- EnableWindow(GetDlgItem(hdlg, DRV_COMMLOG), FALSE);
- #endif /* Q_LOG */
CheckDlgButton(hdlg, DRV_UNIQUEINDEX, comval->unique_index);
/* EnableWindow(GetDlgItem(hdlg, DRV_UNIQUEINDEX), enable); */
CheckDlgButton(hdlg, DRV_READONLY, comval->onlyread);
--- 171,176 ----
***************
*** 204,212 ****
CheckDlgButton(hdlg, DRV_BOOLS_CHAR, comval->bools_as_char);
CheckDlgButton(hdlg, DRV_PARSE, comval->parse);
CheckDlgButton(hdlg, DRV_DEBUG, comval->debug);
- #ifndef MY_LOG
- EnableWindow(GetDlgItem(hdlg, DRV_DEBUG), FALSE);
- #endif /* MY_LOG */
SetDlgItemInt(hdlg, DRV_CACHE_SIZE, comval->fetch_max, FALSE);
SetDlgItemInt(hdlg, DRV_VARCHAR_SIZE, comval->max_varchar_size, FALSE);
SetDlgItemInt(hdlg, DRV_LONGVARCHAR_SIZE, comval->max_longvarchar_size, TRUE);
--- 201,206 ----
***************
*** 361,373 ****
case WM_INITDIALOG:
SetWindowLongPtr(hdlg, DWLP_USER, lParam); /* save for test etc */
CheckDlgButton(hdlg, DRV_COMMLOG, globals.commlog);
- #ifndef Q_LOG
- EnableWindow(GetDlgItem(hdlg, DRV_COMMLOG), FALSE);
- #endif /* Q_LOG */
CheckDlgButton(hdlg, DRV_DEBUG, globals.debug);
- #ifndef MY_LOG
- EnableWindow(GetDlgItem(hdlg, DRV_DEBUG), FALSE);
- #endif /* MY_LOG */
getLogDir(logdir, sizeof(logdir));
SetDlgItemText(hdlg, DS_LOGDIR, logdir);
#ifdef _HANDLE_ENLIST_IN_DTC_
--- 355,361 ----
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-12 02:55 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
@ 2016-07-12 03:57 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2016-07-12 05:53 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-14 14:20 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
0 siblings, 2 replies; 8+ messages in thread
From: Inoue, Hiroshi @ 2016-07-12 03:57 UTC (permalink / raw)
To: Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>; Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; +Cc: pgsql-odbc
Hi,
On 2016/07/12 11:55, Tsunakawa, Takayuki wrote:
> Hi, Inoue-san,
>
>> I have the mylog output. However, there was another problem. When using
>> 9.5.300 all the the check boxes for the logs were disabled (greyed out)
>> - even when creating a new ODBC DSN. When using 9.3.400 everything is okay.
> The attached is a patch to fix this. Could you commit this?
Hmm, I already committed the fix.
regards,
Hiroshi Inoue
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-12 02:55 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 03:57 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
@ 2016-07-12 05:53 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
1 sibling, 0 replies; 8+ messages in thread
From: Tsunakawa, Takayuki @ 2016-07-12 05:53 UTC (permalink / raw)
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>; +Cc: pgsql-odbc
> From: Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp]
> Hmm, I already committed the fix.
Oh, I should have checked the git log... Thanks.
Regards
Takayuki Tsunakawa
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-12 02:55 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 03:57 ` Re: psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
@ 2016-07-14 14:20 ` Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
1 sibling, 0 replies; 8+ messages in thread
From: Jan-Peter Seifert @ 2016-07-14 14:20 UTC (permalink / raw)
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>; pgsql-odbc
Hello,
> Hmm, I already committed the fix.
it's good to know that this bug has been fixed.
Thank you very much!
Best regards,
Peter
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2016-07-14 14:20 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-04 13:31 psqlODBC 09.05.0300 (x86) - problem with SQL_QUERY_TIMEOUT Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-07 01:51 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-08 13:34 ` Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
2016-07-11 01:18 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 02:55 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-12 03:57 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2016-07-12 05:53 ` Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
2016-07-14 14:20 ` Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
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