apps/docs/content/guides/platform/migrating-to-supabase/render.mdx
Render is a popular Web Hosting service in the online services category that also has a managed Postgres service. Render has a great developer experience, allowing users to deploy straight from GitHub or GitLab. This is the core of their product and they do it really well. However, when it comes to Postgres databases, it may not be the best option.
Supabase is one of the best free alternative to Render Postgres. Supabase provide all the backend features developers need to build a product: a Postgres database, authentication, instant APIs, edge functions, realtime subscriptions, and storage. Postgres is the core of Supabase—for example, you can use row-level security and there are more than 40 Postgres extensions available.
This guide demonstrates how to migrate from Render to Supabase to get the most out of Postgres while gaining access to all the features you need to build a project.
PSQL_COMMAND=.Example:
%env PSQL_COMMAND=PGPASSWORD=RgaMDfTS_password_FTPa7 psql -h dpg-a_server_in.oregon-postgres.render.com -U my_db_pxl0_user my_db_pxl0
If you're new to Supabase, create a project. Make a note of your password, you will need this later. If you forget it, you can reset it here.
On your project dashboard, click Connect
Under Session pooler, Copy the connection string and replace the password placeholder with your database password.
<Admonition type="note">If you're in an IPv6 environment or have the IPv4 Add-On, you can use the direct connection string instead of Supavisor in Session mode.
</Admonition>The fastest way to migrate your database is with the Supabase migration tool on Google Colab. Alternatively, you can use the pg_dump and psql command line tools, which are included in a full Postgres installation.
<Tabs scrollable size="small" type="underlined" defaultActiveId="colab" queryGroup="migrate-method"
<TabPanel id="colab" label="Migrate using Colab">
PSQL_COMMAND, SUPABASE_HOST, SUPABASE_PASSWORD) in the Colab notebook.Export your Render database to a file in console
Use pg_dump with your Render credentials to export your Render database to a file (e.g., render_dump.sql).
pg_dump --clean --if-exists --quote-all-identifiers \
-h $RENDER_HOST -U $RENDER_USER -d $RENDER_DATABASE \
--no-owner --no-privileges > render_dump.sql
Import the database to your Supabase project
Use psql to import the Render database file to your Supabase project.
psql -d "$YOUR_CONNECTION_STRING" -f render_dump.sql
Additional options
--schema=PATTERN parameter to your pg_dump command.--exclude-schema=PATTERN.--table=PATTERN.--exclude-table=PATTERN.Run pg_dump --help for a full list of options.
<$Partial path="migration_warnings.mdx" />
Contact us if you need more help migrating your project.