Introducing Database Traffic Control™: resource budgets for your Postgres query traffic.Learn more
Navigation

Query Insights negated search terms

Query Insights search now supports negated filter terms for both Postgres and Vitess. Prefix any search term with ! to exclude matching results — for example, !table:users returns all queries that don't touch the users table, and !indexed:true surfaces unindexed queries.

Positive and negative terms can be combined freely: p99:>100 !table:sessions finds slow queries that don't involve the sessions table. Negation applies to the token immediately following !, so quoted phrases work too — !"some text" excludes queries matching that phrase, while "!some text" treats the exclamation mark as a literal character when searching for queries that include it in the normalized SQL.

Read more about filtering queries with Vitess or filtering queries with Postgres.