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
151337: opt: eliminate barrier expressions at the root r=mgartner a=mgartner
`BarrierExpr`s are now eliminated at the root of the expression tree.
These barriers are typically pulled up the expression tree by
normalization rules. At the root, they are useless, as their purpose is
an optimization barrier which prevents filters from being pushed into
their input. These barriers also prevented the placeholder-fast path
from applying, incurring extra overhead for queries on RLS tables.
Barrier elimination occurs in `optbuilder` when building the canonical
plan. It cannot be codified as a normalization rule because the
`Construct...` functions have no concept of a root expression when they
are invoked. The tree is built bottom-up so the root expression is only
known by callers, when all other expressions have been built. Barrier
expressions are never added nor pulled up the tree during exploration,
so removing a barrier at the root in the canonical plan should be
sufficient in eliminating a barriers at the root in all optimized plans.
Fixes#149694
Release note (performance improvement): Some types of simple queries
that query a table with RLS enabled are now more efficiently executed.
151495: sql: add goroutine IDs to text trace output in logs r=alyshanjahani-crl,arulajmani,yuzefovich a=dhartunian
when outputting a transaction trace in text format into the logs, we will now include the goroutine ID in the line with the operation like this:
```
=== operation:foo gid:123 <other tags>
```
Epic: None
Release note: None
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: David Hartunian <[email protected]>
0 commit comments