(searchPath string)
| 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. |
no outgoing calls
no test coverage detected