- Symptom
- update() resolves with error null and status 204 while the row is unchangedupdate().select() returns an empty arrayAn UPDATE policy exists and looks correct
- Cause
- Postgres must be able to see a row before it can update it, so UPDATE under RLS also needs a matching SELECT policy. Rows hidden from SELECT are skipped silently.
- Fix
- Add a SELECT policy covering the same rows as the UPDATE policy, and chain .select() in tests so a zero-row update is visible.
- Apply
create policy "select own" on public.profiles for select to authenticated using ((select auth.uid()) = id); create policy "update own" on public.profiles for update to authenticated using ((select auth.uid()) = id) with check ((select auth.uid()) = id);- Affected
- All Supabase projects with RLS enabled; any client library
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders