comdb2
comdb2 copied to clipboard
log long running SQLs executed from a stored procedure
cdb2test Oct 11 11:13:28 2024 in-comdb2db aar_longreqs.R20241011.2
Instead of overwriting clnt->sql, how about adding a version of reqlog_end_request which takes the request string. You can get the sql string from the sqlite_stmt object just before it is reset or finalized.
cdb2test Oct 22 23:39:56 2024 in-comdb2db aar_longreqs.R20241022.11