-
Notifications
You must be signed in to change notification settings - Fork 209
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
URGENT: Supabase DB Dump Corrupting Data Due to UNIQ #2632
Comments
I figured out the cause myself. This is a serious bug. If you do a
The last command in this sequence is a
This will come up very frequently in many databases, so at this moment The offending line of code can be found here. |
PR submitted here: |
Describe the bug
UPDATE:
supabase db dump
is runninguniq
on its output which removed any contingous lines that are identical. This is corrupting output data and needs an urgent fix. (see my comments below).When I run
supabase db dump
I get back a different function definition than is present on our production host. When I runpg_dump
on the same host, I get the correct definition. If I log into the host via the Supabase UI, I see the correct function def. If I query the function def via SQL, I get the correct result:To Reproduce
pg dump dump
pg_dump
handle_lesson_completion
function. It is different between the two dumps.Expected behavior
The functions should be the same.
Screenshots
Excerpt of correct function def:
Excerpt of incorrect function def:
System information
Rerun the failing command with
--create-ticket
flag.No additional output is provided.
Additional context
I can provide my supabase instance id if needed.
The text was updated successfully, but these errors were encountered: