################################## pg dump start ###########################################
psql -U postgres -d YOUR_DATABASE
CREATE USER cloudsqlsuperuser WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE YOUR_DATABASE TO cloudsqlsuperuser;
GRANT cloudsqlsuperuser TO postgres;
CREATE ROLE cloudsqladmin WITH LOGIN PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE YOUR_DATABASE TO cloudsqladmin;
exit
############################# Everything should work now #############################
psql -U postgres -d YOUR_DATABASE -f dump.sql