Does a pure Go Postgres driver work with Cloud SQL on GAE Standard?

118 views
Skip to first unread message

dcco...@gmail.com

unread,
May 18, 2017, 11:38:35 AM5/18/17
to google-appengine-go
Hi,

According to Cloud SQL documentation, Postgres is not supported on GAE Standard. Is that because of the lack of Postgres database connection support, or is it because of the lack of native extensions?

If it's the former, would a pure Go driver like https://github.com/lib/pq work on Standard?

pj

unread,
May 23, 2017, 11:47:27 PM5/23/17
to google-appengine-go
In order to connect to an external service such as a Postgres server, you need to use urlfetch or socketAPI.
To use urlfetch, your postgres server will need a HTTP interface.

The easiest way is to not use GAE Standard. You can use GAE flexible instead.

dcco...@gmail.com

unread,
May 24, 2017, 9:09:45 AM5/24/17
to google-appengine-go


On Wednesday, May 24, 2017, pj wrote:
In order to connect to an external service such as a Postgres server, you need to use urlfetch or socketAPI.
To use urlfetch, your postgres server will need a HTTP interface.

From your link:

This package is an experimental package designed to allow Google App Engine (Standard Environment) to use an non-cloudSQL database hosted elsewhere.

 My question was specifically about connecting GAE Go Standard to Cloud SQL Postgesql.
Reply all
Reply to author
Forward
0 new messages