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
sql,optbuilder: route descriptor lookups for triggers through cache
Triggers have a `TG_TABLE_SCHEMA` argument which provides the schema
name. Getting the schema name requires doing a descriptor lookup when
the trigger is planned, which previously avoided the cache and always
performed an expensive KV lookup. This commit plumbs `ResolveSchemaByID`,
which allows the lookup to hit the descriptor cache.
Fixes#144211
Release note (performance improvement): Triggers now perform the
descriptor lookup for `TG_TABLE_SCHEMA` against a cache. This can
significantly reduce trigger planning latency in multi-region databases.
0 commit comments