I have exported a database as a SQL file in Google Cloud Platform Cloud SQL Postgres Database using their GUI wizard. I want to import the data from the dump into my local PostgresQL installation. I tried using PgAdmin4 with various settings but kept failing. I then tried the following command which retrieved the data but most of the relationships are gone.
psql -f "SQLFile.sql" --host "localhost" --port "5432" --username "dbusername" "myDBName"
How can I create a local clone of my Cloud SQL db?