This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* show running queries */ | |
| select pid, user_name, starttime, query | |
| from stv_recents | |
| where lower(status) = 'running'; | |
| /* show recent completed queries */ | |
| select pid, user_name, starttime, query | |
| from stv_recents | |
| where lower(status) = 'done' | |
| order by starttime desc; |