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

Function ensureMemoryMainInSearchPath

controlplane/session_search_path.go:68–73  ·  view source on GitHub ↗
(searchPath string)

Source from the content-addressed store, hash-verified

66}
67
68// visibleCatalogName returns the name the session reports for its catalog on
69// the PG wire — current_database(), pg_database, information_schema, the logs,
70// and the catalog half of a three-part reference.
71//
72// It is the logical alias when the connection selected one (its org's Trino
73// catalog name, validated against the SNI-resolved org in
74// ResolvePostgresConnection), else the real attached catalog. Only the NAME
75// differs: every statement still executes against effectiveCatalog, and the
76// transpiler rewrites the alias back to it.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected