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/schemachanger: fix RLS policy ordering when swapping elements
Previously, the order of operations when swapping row-level security
(RLS) policies was not explicitly enforced, depending instead on their
addition order in the builder. New rules for automatically managing
`schema_locked` highlighted a risk: without strict ordering, the swap
sequence could be inadvertently reversed. This patch addresses this by
enforcing that RLS policy drops always occur before the corresponding
adds during a swap operation.
Fixes: #144767Fixes: #144762
Release note: None
0 commit comments