MCPcopy Create free account
hub / github.com/PostHog/duckgres / matchPgStatActivityQuery

Function matchPgStatActivityQuery

server/conn_pg_stat_activity.go:30–35  ·  view source on GitHub ↗

matchPgStatActivityQuery returns true if a query references pg_stat_activity.

(query string)

Source from the content-addressed store, hash-verified

28
29// matchPgStatActivityQuery returns true if a query references pg_stat_activity.
30func matchPgStatActivityQuery(query string) bool {
31 if !strings.Contains(query, "pg_stat_activity") {
32 return false
33 }
34 return pgStatActivityRegex.MatchString(query)
35}
36
37// pg_stat_activity column definitions
38var pgStatActivityColumns = []struct {

Callers 4

handleParseMethod · 0.85
handleQueryMethod · 0.85

Calls

no outgoing calls

Tested by 1