You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SHOW DATABASES uses an internal table that has to iterate over schemas once per database. This is really unfortunate. SHOW DATABASES should be switched to use pg_catalog.databases or another table that doesn't have to do any per-database extra roundtrips.
This should live under the "too many roundtrips in DDL" work scope, IMO, so assigning to @rohany.
The text was updated successfully, but these errors were encountered:
Fixescockroachdb#49339.
This PR fixes a performance regression in the `SHOW DATABASES`
statement. The regression was caused by the table backing the show
databases statement performing a lookup of each databases' schemas.
Release note (performance improvement): Fix a performance regression in
the `SHOW DATABASES` command introduced in 20.1.
Release note (sql change): Add the `crdb_internal.databases` virtual
table.
SHOW DATABASES uses an internal table that has to iterate over schemas once per database. This is really unfortunate. SHOW DATABASES should be switched to use pg_catalog.databases or another table that doesn't have to do any per-database extra roundtrips.
This should live under the "too many roundtrips in DDL" work scope, IMO, so assigning to @rohany.
The text was updated successfully, but these errors were encountered: