diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Revision history for tmp-proc-postgres
 
+## 0.5.2.0 -- 2022-08-10
+
+* Update the connection URI
+
 ## 0.5.1.0 -- 2022-08-08
 
 * Bump version of text and base
diff --git a/src/System/TmpProc/Docker/Postgres.hs b/src/System/TmpProc/Docker/Postgres.hs
--- a/src/System/TmpProc/Docker/Postgres.hs
+++ b/src/System/TmpProc/Docker/Postgres.hs
@@ -85,11 +85,11 @@
 
 {-| Makes a uri whose password matches the one specified in 'runArgs''. -}
 mkUri' :: HostIpAddress -> SvcURI
-mkUri' ip = "host="
-             <> C8.pack (Text.unpack ip)
-             <> " dbname=postgres user=postgres password="
-             <> dbPassword
-             <> " port=5432"
+mkUri' ip = "postgres://postgres:"
+          <> dbPassword
+          <> "@"
+          <> (C8.pack (Text.unpack ip))
+          <> "/postgres"
 
 
 dbPassword :: C8.ByteString
diff --git a/tmp-proc-postgres.cabal b/tmp-proc-postgres.cabal
--- a/tmp-proc-postgres.cabal
+++ b/tmp-proc-postgres.cabal
@@ -1,6 +1,6 @@
 cabal-version:      3.0
 name:               tmp-proc-postgres
-version:            0.5.1.1
+version:            0.5.2.0
 synopsis:           Shows how to run a PostgreSQL database as a tmp proc
 description:
   An example of using tmp-proc to launch dockerized PostgreSQL in integration tests.
