Using Regex In Postgresql Query History