Skip to content

Commit 1be139d

Browse files
committed
feat: Upgrade postgresql to 17
Related to #1275
1 parent b0eb7a6 commit 1be139d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ trustify-module-user = { path = "modules/user" }
175175
# as well as build-dependencies. However, we can't control feature flags for build dependencies the way we do
176176
# it for normal dependencies. So enabling the vendor feature for openssl-sys doesn't work for the build-dependencies.
177177
# This will fail the build on targets where we need vendoring for openssl. Using rustls instead works around this issue.
178-
postgresql_archive = { version = "0.17.3", default-features = false, features = ["theseus", "rustls-tls"] }
179-
postgresql_embedded = { version = "0.17.3", default-features = false, features = ["theseus", "rustls-tls"] }
180-
postgresql_commands = { version = "0.17.3", default-features = false, features = ["tokio"] }
178+
postgresql_archive = { version = "0.17.5", default-features = false, features = ["theseus", "rustls-tls"] }
179+
postgresql_embedded = { version = "0.17.5", default-features = false, features = ["theseus", "rustls-tls"] }
180+
postgresql_commands = { version = "0.17.5", default-features = false, features = ["tokio"] }
181181

182182
[patch.crates-io]
183183
#csaf-walker = { git = "https://github.com/ctron/csaf-walker", rev = "7b6e64dd56e4be79e184b053ef754a42e1496fe0" }

common/src/db/embedded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use tracing::{info_span, Instrument};
66

77
/// Create common default settings for the embedded database
88
fn default_settings() -> anyhow::Result<Settings> {
9-
let version = VersionReq::parse("=16.3.0").context("valid psql version")?;
9+
let version = VersionReq::parse("=17.2.0").context("valid psql version")?;
1010
Ok(Settings {
1111
version,
1212
username: "postgres".to_string(),

etc/deploy/compose/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
services:
22
postgres:
3-
image: docker.io/library/postgres:16
3+
image: docker.io/library/postgres:17
44
ports:
55
- "5432:5432"
66
environment:
77
POSTGRES_PASSWORD: "trustify"
88
POSTGRES_DB: "trustify"
99
restart: always
10-
shm_size: '1g'
10+
shm_size: '1g'

trustd/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Run {
8181
("max_connections".to_string(), "500".to_string()),
8282
]);
8383
let settings = postgresql_embedded::Settings {
84-
version: VersionReq::parse("=16.3.0")?,
84+
version: VersionReq::parse("=17.2.0")?,
8585
username: self.database.username.clone(),
8686
password: self.database.password.clone(),
8787
temporary: false,

0 commit comments

Comments
 (0)