Add CI tests for PostgreSQL v11
We added a MATERIALIZED
view to optimize the metrics query, but this keyword is only available in PostgreSQL v12. This caused an severity 3 incident: gitlab-com/gl-infra/production#5945 (closed)
The Praefect database in Cloud SQL is running v11, and we have customers also using v11.
Relates to #3930 (closed)
Edited by Stan Hu