Skip to content
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

fix: exclude pgmq schema from db dump and pull #3043

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Jan 14, 2025

What kind of change does this PR introduce?

Bug fix #2998

What is the current behavior?

pgmq causes seg fault when running pg_dump. Steps to reproduce

  1. Create supabase/migrations/0_schema.sql
CREATE EXTENSION pgmq;
SELECT pgmq.create('my_queue');
  1. Run supabase db dump --local
Dumping schemas from local database...
--: line 47:     7 Segmentation fault      pg_dump --schema-only --quote-all-identifier --exclude-schema "${EXCLUDED_SCHEMAS:-}" ${EXTRA_FLAGS:-}
...
error running container: exit 139

What is the new behavior?

Exclude pgmq schema to unblock db dump.

Schema diffing for pgmq queues wouldn't work anyway because it inserts into pgmq.meta table.

The workaround is to manage those queues manually with migration files like (1).

Additional context

Add any other context or screenshots.

@sweatybridge sweatybridge changed the title fix: exclude pgmq schema from db dump fix: exclude pgmq schema from db dump and pull Jan 14, 2025
@sweatybridge sweatybridge merged commit d27db81 into develop Jan 14, 2025
9 checks passed
@sweatybridge sweatybridge deleted the excl-pgmq branch January 14, 2025 17:15
@github-actions github-actions bot mentioned this pull request Jan 21, 2025
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.

Segmentation fault on db pull
2 participants