I have 5GB SQL dump and I want to import that to Postgres. I have one problem in SQL dump that is CREATE TABLE IF EXISTS. This is invalid in Postgres. I am unable to remove this line from that dump because that is huge in SIZE (5GB).
I am doing all these in Google Cloud. If there is any way to migrate from Google SQL to Postgres that will also work for me.
create table if existsmakes no sense whatsoever. Did you meanif NOT exists?create if not existsis just one of many problems you will havecreate table if NOT existsis supported by Postgres. But notcreate table if exists(which doesn't make sense to begin with and wouldn't actually work)