Collect Stored Procedure details from slow query log
Description
How to test
How to document
Smart Checklist
Activity

Tibor Korocz (Percona) November 1, 2019 at 4:07 PM
Hi,
This is maybe even easier than we thought we should just use Performance Schema for that, honestly I did not know we can find this details in P_S.
https://mablomy.blogspot.com/2015/03/profiling-stored-procedures-in-mysql-57.html
So we can easily query which queries belong to which stored procedure and QAN could display that...

Tibor Korocz (Percona) September 27, 2019 at 9:27 PM
Hi, Any news on this ticket?

RobF October 5, 2018 at 9:46 PM
Hello - this feature would be very valuable to me as well. Along with the ability to see how often procedures are called, by name. Right now I trawl the slow log for that information. Thanks!

Roma Novikov February 8, 2018 at 8:46 PM
as a reminder about ideas to this FR : auto applied "Labels" to Query .. and in this case it will be :
"Stored_routine: ccg.TransactionCreateTransaction" label for example

Kenny Gryp January 12, 2018 at 12:22 AM
: this is listed in the ClickHouse for QAN EPIC, why is that? Seems unrelated.
Details
Details
Assignee
Reporter

Priority
Components
Needs QA
Needs Doc
Story Points
Smart Checklist
Open Smart Checklist
Smart Checklist

Hi,
At the moment we do not collect if a query was running inside a stored procedure or not. This is a Percona Server specific feature.
There is a line in the slow log:
Stored_routine: db.procedure
Tasks
We should also parse and store the
Stored_routine
We should provide ability display only the queries from a specific
Stored_routine
item, so that a User could inspect all the queries from a sample SP execution