Skip to content

Commit 68e7b1f

Browse files
feat: Update default Cloud SQL Postgres version to 17 and add more versions (#9211)
In `src/gcp/cloudsql/cloudsqladmin.ts`, we currently default to postgres 15. This change updates that to default to postgres 17. This also adds Postgres 16, 17, and 18 to the available `databaseVersion` types in `src/gcp/cloudsql/types.ts` and adds a changelog entry to `CHANGELOG.md`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Joe Hanley <[email protected]>
1 parent 1650098 commit 68e7b1f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- CloudSQL instances created with `firebase dataconnect:connect` now default to Postgres 17.
12
- Fixed an issue with deploying indexes to Firestore Enterprise edition databases where explicit `__name__` fields could be incorrectly handled.
23
- The `experimental:mcp` command has been renamed to `mcp`. The old name is now an alias.
34
- `firebase_update_environment` MCP tool supports accepting Gemini in Firebase Terms of Service.

src/gcp/cloudsql/cloudsqladmin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function createInstance(args: {
7474
await client.post<Partial<Instance>, Operation>(`projects/${args.projectId}/instances`, {
7575
name: args.instanceId,
7676
region: args.location,
77-
databaseVersion: "POSTGRES_15",
77+
databaseVersion: "POSTGRES_17",
7878
settings: {
7979
tier: "db-f1-micro",
8080
edition: "ENTERPRISE",

src/gcp/cloudsql/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ interface InsightsConfig {
6565
export interface Instance {
6666
state?: "RUNNABLE" | "SUSPENDED" | "PENDING_DELETE" | "PENDING_CREATE" | "MAINTENANCE" | "FAILED";
6767
databaseVersion:
68+
| "POSTGRES_18"
69+
| "POSTGRES_17"
70+
| "POSTGRES_16"
6871
| "POSTGRES_15"
6972
| "POSTGRES_14"
7073
| "POSTGRES_13"

0 commit comments

Comments
 (0)