Skip to content

Conversation

@valigula
Copy link
Contributor

@valigula valigula commented Jul 30, 2025

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

@vercel
Copy link

vercel bot commented Jul 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2025 7:52am
7 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cms ⬜️ Ignored (Inspect) Jul 31, 2025 7:52am
studio ⬜️ Ignored (Inspect) Jul 31, 2025 7:52am
design-system ⬜️ Skipped (Inspect) Jul 31, 2025 7:52am
studio-self-hosted ⬜️ Skipped (Inspect) Jul 31, 2025 7:52am
studio-staging ⬜️ Skipped (Inspect) Jul 31, 2025 7:52am
ui-library ⬜️ Skipped (Inspect) Jul 31, 2025 7:52am
zone-www-dot-com ⬜️ Skipped (Inspect) Jul 31, 2025 7:52am

@supabase
Copy link

supabase bot commented Jul 30, 2025

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

valigula and others added 4 commits July 30, 2025 15:12
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>
@valigula valigula marked this pull request as ready for review July 30, 2025 13:16
valigula and others added 3 commits July 30, 2025 15:25
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.
Copy link
Contributor

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>
@valigula valigula requested a review from darora August 1, 2025 14:33
@valigula valigula merged commit 28768b1 into master Aug 11, 2025
17 checks passed
@valigula valigula deleted the self-ref-views-doc branch August 11, 2025 11:12
PLyn pushed a commit that referenced this pull request Aug 25, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants