Skip to content

Step 5: evaluate the operator's administrator check once per statement #58

Open

Description

@leandrotcawork

Found by the step 5 whole review (Opus, finding 14; Sonnet noted the same), triaged Issue futura (delivery L12).

Every operator policy calls auth.is_installation_administrator(...), a STABLE SECURITY DEFINER function that cannot be inlined, once per row.

Trigger: a Central list in the thousands of rows.

Direction: wrap the call as (select auth.is_installation_administrator(...)), so the planner evaluates it once per statement as an init plan.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions