Skip to content

Transfer data from Heroku Postgres to Supabase #666

Closed Answered by kiwicopple
ShubhamVerma1811 asked this question in Questions
Discussion options

You must be logged in to vote

Definitely the easiest way is to use pg_dump (from Heroku) and then pg_restore into your Supabase database

https://www.postgresql.org/docs/current/app-pgdump.html

For better performance, it is probably useful to turn off all replication/realtime before you do this:

begin; 
  -- remove the realtime publication
  drop publication if exists supabase_realtime; 

  -- re-create the publication but don't enable it for any tables
  create publication supabase_realtime;  
commit;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flov
Comment options

Answer selected by ShubhamVerma1811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants