---
title: "Discussion on \"Supabase \"infinite recursion detected in policy for relation\": the fix, and the shortcuts that open your database\" | Hashnode"
description: "Discussion on \"Supabase \"infinite recursion detected in policy for relation\": the fix, and the shortcuts that open your database\". Error 42P17 usually shows up when you add sharing, teams or admin roles. The fix Supabase documents, why each line matters, and how to test it as a real user."
url: "https://hashnode.com/posts/supabase-infinite-recursion-detected-in-policy-fix/6b0f3f9e1d6003bd37b16a83"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Supabase "infinite recursion detected in policy for relation": the fix, and the shortcuts that open your database](https://proofforge.hashnode.dev/supabase-infinite-recursion-detected-in-policy-fix?utm_source=hashnode&utm_medium=feed)

Error 42P17 usually shows up when you add sharing, teams or admin roles. The fix Supabase documents, why each line matters, and how to test it as a real user.

1h ago · 6 min read · proofforge.hashnode.dev  
Read the article

-   [#supabase](https://hashnode.com/tag/supabase)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#rls](https://hashnode.com/tag/rls)
-   [#security](https://hashnode.com/tag/security)
-   [#vibe-coding](https://hashnode.com/tag/vibe-coding)

## Written by

[ProofForge](https://hashnode.com/@proofforge)

@proofforge

  
[View profile](https://hashnode.com/@proofforge)

Is your AI-built app leaking? Free security check for Lovable, Bolt, Replit, Cursor and v0 apps.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
