The short answer to this question unfortunately is that it is not possible to make it permanent update. However, I found a work-around and I hope this could be useful for anyone who develop from China.
- Get a server running outside China. (For my case I used Vultr. It is as cheap as $5 / month.) You can use whatever convenient for you.
- Install
gcloud
in that server. If you are using Ubuntu server like me, then you could follow this instruction
- Install
psql
. For Linux servers you can follow this instruction
- Then run
gcloud init
. Set the appropriate project and server location. Find the server location in your Google Cloud Console.
- If you have any SSH settings enabled, then you have to take care of this as well.
- Run
gcloud sql connect <postgres-instance-name> --user=<username> --quiet
Then it works!
Now I can use GCLOUD without VPN because I connect firstly to that server I setup.