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
144217: sql,optbuilder: route descriptor lookups for triggers through cache r=mgartner,yuzefovich a=DrewKimball
#### rttanalysis: add test case with a trigger
This commit adds an rttanalysis test case that creates a trigger on
a table and then inserts into the table. This will be useful in the
following commit, which seeks to ensure the schema lookup during
planning of a trigger goes through the cache.
Informs #144211
Release note: None
#### sql: add logic test for trigger arguments
This commit adds a test to ensure that trigger function arguments are
provided correctly.
Epic: None
Release note: None
#### 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.
Co-authored-by: Drew Kimball <[email protected]>
0 commit comments