I have been trying to import .sql file created from pg_dump into google's cloudsql. But I keep getting this error message:
SET SET SET SET SET set_config ------------ (1 row) SET SET SET SET SET CREATE TABLE ERROR: syntax error at or near "AS" LINE 2: AS integer ^ Import error: exit status 3
Before this problem, I got stuck at EXTENSION COMMENT issue, so I did pg_dump -U [USERNAME] --format=plain --no-owner --no-acl [DATABASE_NAME] \
| sed -E 's/(DROP|CREATE|COMMENT ON) EXTENSION/-- \1 EXTENSION/g' > [SQL_FILE].sql
as Google's documentation recommends.
Any suggestion?