Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix ordering of DROP TRIGGER statements in the filtered schema#588

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tsg wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromdrop_trigger_order_fix

Conversation

@tsg
Copy link
Member

@tsgtsg commentedNov 8, 2025

Description

In a similar issue with#573 we're seeing error of this form:

ERROR: relation "public.table" does not exist

Which seem to come from DROP TRIGGER statmenets in the filtered schema like:

DROP TRIGGER IF EXISTS trigger_name ON public.table;

because it's called beforepublic.table is created.

Related Issue(s)
  • Fixes #(issue number)
  • Closes #(issue number)
  • Related to #(issue number)

Type of Change

Please select the relevant option(s):

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test coverage improvement
  • 🔨 Build/CI changes
  • 🧹 Code cleanup

Changes Made

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • All existing tests pass

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Code is well-commented
  • Documentation updated where necessary

Additional Notes

@tsgtsg requested a review fromeminanoNovember 8, 2025 17:53
@github-actions
Copy link

Merging this branch willnot change overall coverage

Impacted PackagesCoverage Δ🤖
github.com/xataio/pgstream/pkg/snapshot/generator/postgres/schema/pgdumprestore90.14% (ø)

Coverage by file

Changed files (no unit tests)

Changed FileCoverage ΔTotalCoveredMissed🤖
github.com/xataio/pgstream/pkg/snapshot/generator/postgres/schema/pgdumprestore/snapshot_pg_dump_restore_generator.go83.71% (ø)26422143

Please note that the "Total", "Covered", and "Missed" counts above refer tocode statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@eminano
Copy link
Collaborator

eminano commentedNov 10, 2025
edited
Loading

This shouldn't happen. The drop statements are coming from the clean stage of the dump. The order should be valid unless the clean is enabled and the table doesn't exist, but even in that case, it shouldn't be preventing the dump, those errors should be ignored.

Can you share more details about what triggers this?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@eminanoeminanoAwaiting requested review from eminano

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tsg@eminano

[8]ページ先頭

©2009-2025 Movatter.jp