MCPcopy Create free account
hub / github.com/bytebase/bytebase / isPGSystemPath

Function isPGSystemPath

backend/store/model/pg_search_path.go:121–129  ·  view source on GitHub ↗

isPGSystemPath checks if a path is a PostgreSQL system schema.

(path string)

Source from the content-addressed store, hash-verified

119
120// isPGSystemPath checks if a path is a PostgreSQL system schema.
121func isPGSystemPath(path string) bool {
122 systemSchemas := []string{"pg_catalog", "information_schema", "pg_toast", "pg_temp_1", "pg_temp_2", "pg_global"}
123 for _, schema := range systemSchemas {
124 if strings.EqualFold(path, schema) {
125 return true
126 }
127 }
128 return false
129}

Callers 1

parsePGSearchPathItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected