From acbd6a770c0f14334d6574e0f74e6239587e6c3b Mon Sep 17 00:00:00 2001
From: bstrausser <bstrausser@locusrobotics.com>
Date: Sat, 13 Apr 2024 12:02:19 -0400
Subject: [PATCH 1/3] Bump default postgres version

---
 modules/postgres/postgres.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/postgres/postgres.go b/modules/postgres/postgres.go
index cb3d01694b..cd349494c8 100644
--- a/modules/postgres/postgres.go
+++ b/modules/postgres/postgres.go
@@ -13,7 +13,7 @@ import (
 const (
 	defaultUser          = "postgres"
 	defaultPassword      = "postgres"
-	defaultPostgresImage = "docker.io/postgres:11-alpine"
+	defaultPostgresImage = "docker.io/postgres:16-alpine"
 	defaultSnapshotName  = "migrated_template"
 )
 
@@ -26,10 +26,9 @@ type PostgresContainer struct {
 	snapshotName string
 }
 
-
 // MustConnectionString panics if the address cannot be determined.
 func (c *PostgresContainer) MustConnectionString(ctx context.Context, args ...string) string {
-	addr, err := c.ConnectionString(ctx,args...)
+	addr, err := c.ConnectionString(ctx, args...)
 	if err != nil {
 		panic(err)
 	}

From 16e5558f444441a424fbd4621b669b16828e8a79 Mon Sep 17 00:00:00 2001
From: bstrausser <bstrausser@locusrobotics.com>
Date: Mon, 15 Apr 2024 11:55:43 -0400
Subject: [PATCH 2/3] Bump to use latest pg

---
 modules/postgres/examples_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/postgres/examples_test.go b/modules/postgres/examples_test.go
index ee164fdb6a..20fc50d696 100644
--- a/modules/postgres/examples_test.go
+++ b/modules/postgres/examples_test.go
@@ -21,7 +21,7 @@ func ExampleRunContainer() {
 	dbPassword := "password"
 
 	postgresContainer, err := postgres.RunContainer(ctx,
-		testcontainers.WithImage("docker.io/postgres:15.2-alpine"),
+		testcontainers.WithImage("docker.io/postgres:16-alpine"),
 		postgres.WithInitScripts(filepath.Join("testdata", "init-user-db.sh")),
 		postgres.WithConfigFile(filepath.Join("testdata", "my-postgres.conf")),
 		postgres.WithDatabase(dbName),

From 2969588877966ff1b7e624b696dc20905904239e Mon Sep 17 00:00:00 2001
From: bstrausser <bstrausser@locusrobotics.com>
Date: Mon, 15 Apr 2024 11:57:24 -0400
Subject: [PATCH 3/3] Bump version from non-ancient version

---
 docs/modules/postgres.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/modules/postgres.md b/docs/modules/postgres.md
index 47cb9115dc..683ed29162 100644
--- a/docs/modules/postgres.md
+++ b/docs/modules/postgres.md
@@ -41,7 +41,7 @@ When starting the Postgres container, you can pass options in a variadic way to
 #### Image
 
 If you need to set a different Postgres Docker image, you can use `testcontainers.WithImage` with a valid Docker image
-for Postgres. E.g. `testcontainers.WithImage("docker.io/postgres:9.6")`.
+for Postgres. E.g. `testcontainers.WithImage("docker.io/postgres:16-alpine")`.
 
 {% include "../features/common_functional_options.md" %}