Fence selective authorization joins when estimates scan all history
When a PostgreSQL authorization helper joins a small protected population to large historical tables, inaccurate join estimates can select a full scan even after the small table is analyzed. Inspect the helper's inner plan separately from the outer indexed query. If the protected…