concourse / hush-house

Concourse k8s-based environment
https://hush-house.pivotal.io
30 stars 23 forks source link

Update CloudSQL to PostgreSQL 11 #24

Open cirocosta opened 5 years ago

cirocosta commented 5 years ago

Hey,

GCP just got support for PostgreSQL 11 out

https://cloud.google.com/blog/products/databases/enterprise-databases-managed-for-you

We’ve heard you want the latest version, so we are pleased to announce PostgreSQL version 11 support, which includes useful new features like partitioning improvements, stored procedures, and more parallelism.

so we should be able to upgrade hush-house's database to leverage that.

Because all of our IaaS resources are created using terraform, we'd need to update that in our module that brings the DB up:

https://github.com/concourse/hush-house/blob/d2fefbe7aaef68f8aff4670be84adf98c5f26dc6/terraform/database/main.tf#L5-L8

From https://cloud.google.com/sql/docs/postgres/create-instance#create-2ndgen-curl, it appears that the version should then be specified as POSTGRES_11_1.

Thanks!

gowrisankar22 commented 4 years ago

@cirocosta @vito We are planning to upgrade from cloudsql postgres 9.6 to cloudsql postgres 12 via terraform. Is this recommended/tested ??

Do you have any other suggestions?