![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there any information in IMA about when a query started? It would be nice to be able to detect long-running queries -Robert |
#3
| |||
| |||
|
|
Is there any information in IMA about when a query started? It would be nice to be able to detect long-running queries -Robert Confidentiality/Privilege Notice: This communication is confidential and may be legally privileged. *If you are not the intended recipient please delete the message and notify the sender at Ports of Auckland Limited. Any use, disclosure, copying, distribution or retention of this communication is strictly prohibited. |
#4
| |||
| |||
|
|
Hi Robert I have an abf procedure that runs every xx seconds that creates a temp table containing the currently executing SQL and then when it wakes up again it compares current with what's in the temp table. If it finds the same SQL then it sends a email containing the slow SQL... It's not 100% as sometimes it picks up statements like "commit" but it's pretty useful... |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi I have used a similar approach. An ESQLC-program with a loop that inserts the running queries in a table. I keep the queries running longer than a particular time interval in the table, so I can run reports on it later. I apply the same approach to get queries locking other queries longer than a specified time. I presented my approach on the IUA in London last June, so my presentation should be available on the IUA website. PostgreSQL has a parameter in the configuration file that says to log queries taking longer than a number of milliseconds (log_min_duration_statement). It would certainly be nice to have something like that in Ingres. It wouldn't probably be very difficult adding an parameter to the SC930 trace point (query recording) to specify a number of milliseconds. ;-) Best regards Frédéric |
#10
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Ingres Forums Sent: 11 August 2010 10:57 To: info-ingres (AT) kettleriverconsulting (DOT) com Subject: Re: [Info-Ingres] IMA query duration Hi I have used a similar approach. An ESQLC-program with a loop that inserts the running queries in a table. I keep the queries running longer than a particular time interval in the table, so I can run reports on it later. I apply the same approach to get queries locking other queries longer than a specified time. I presented my approach on the IUA in London last June, so my presentation should be available on the IUA website. PostgreSQL has a parameter in the configuration file that says to log queries taking longer than a number of milliseconds (log_min_duration_statement). It would certainly be nice to have something like that in Ingres. It wouldn't probably be very difficult adding an parameter to the SC930 trace point (query recording) to specify a number of milliseconds. ;-) Best regards Frédéric -- fba ----------------------------------------------------------------------- - fba's Profile: http://community.ingres.com/forum/me...p?userid=16637 View this thread: http://community.ingres.com/forum/sh...ad.php?t=12397 |
![]() |
| Thread Tools | |
| Display Modes | |
| |