-
-
Couldn't load subscription status.
- Fork 10.3k
feat: reference for the self referencing view error #37560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| CREATE VIEW v2 AS SELECT * FROM v1; | ||
| ``` | ||
|
|
||
| -- Drop the offending view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray comment? Can make it a full sentence e.g. Drop the offending view from your database, or delete them from the logical backup to make it restorable.
Co-authored-by: Div Arora <darora@users.noreply.github.com>
* feat: reference for the self referencing view error * feat: adding format * Update apps/docs/content/guides/platform/backups.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update backups.mdx * Update apps/docs/content/guides/platform/backups.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: linter * Update apps/docs/content/guides/platform/backups.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/platform/backups.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update apps/docs/content/guides/platform/backups.mdx Co-authored-by: Div Arora <darora@users.noreply.github.com> * Update apps/docs/content/guides/platform/backups.mdx --------- Co-authored-by: andres.suarez <andres.suarez@supabase.io> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Div Arora <darora@users.noreply.github.com>
I have read the CONTRIBUTING.md file.
Yes
What kind of change does this PR introduce?
Documentation update
What is the current behavior?
The backups guide mentions invalid-check-constraints errors during logical restores but doesn’t cover other common causes, such as views that reference themselves.
What is the new behavior?
Adds a new subsection under Backups > Invalid Check Constraints explaining how self-referencing views can cause restore failures when using logical backups. Includes examples and a link to the official PostgreSQL documentation.
Additional context
This update helps users troubleshoot and resolve restore issues related to broken view definitions, especially in customer support situations where users encounter errors from invalid or cyclic view references.
https://linear.app/supabase/issue/INDATA-35/add-a-comment-in-the-supabasedoc-or-view-pointing-to-itself