Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(db): bump local db version (#5520)

Will Hutchinson983536d79599
diff --git a/.github/workflows/code_check_cloud_storage.yml b/.github/workflows/code_check_cloud_storage.yml
index c291434b70..082622c968 100644
--- a/.github/workflows/code_check_cloud_storage.yml
+++ b/.github/workflows/code_check_cloud_storage.yml
@@ -257,7 +257,7 @@ jobs:
RUSTFLAGS: '-Dwarnings -C link-arg=-fuse-ld=mold'
services:
postgres:
- image: pgvector/pgvector:pg16
+ image: pgvector/pgvector:pg18
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
@@ -316,9 +316,9 @@ jobs:
fi
- name: configure postgres for concurrent tests
run: |
- postgres_container="$(docker ps --format '{{.ID}} {{.Image}}' | awk '$2 == "pgvector/pgvector:pg16" { print $1; exit }')"
+ postgres_container="$(docker ps --format '{{.ID}} {{.Image}}' | awk '$2 == "pgvector/pgvector:pg18" { print $1; exit }')"
if [ -z "$postgres_container" ]; then
- echo "pgvector/pgvector:pg16 service container not found" >&2
+ echo "pgvector/pgvector:pg18 service container not found" >&2
docker ps
exit 1
fi
diff --git a/docker/docker-compose-databases.yml b/docker/docker-compose-databases.yml
index c3c8b7cbc3..4120625274 100644
--- a/docker/docker-compose-databases.yml
+++ b/docker/docker-compose-databases.yml
@@ -5,7 +5,7 @@ name: macro
services:
postgres:
- image: pgvector/pgvector:pg16
+ image: pgvector/pgvector:pg18
# The default 100 max_connections is exhausted when every service's pool
# fills under load (e.g. a large email backfill): workers then die on
# "pool timed out" / "too many clients". Local-only headroom.
@@ -24,7 +24,9 @@ services:
- POSTGRES_PASSWORD=password
- PGPASSWORD=password
volumes:
- - db:/var/lib/postgresql/data
+ # pg18+ images keep PGDATA in a version-specific subdir; mount the parent
+ # so the data dir lands inside the volume (see docker-library/postgres#1259).
+ - db:/var/lib/postgresql
networks:
- databases
redis:
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/code_check_cloud_storage.rs b/tooling/xtask/crates/xtask_workflows/src/workflows/code_check_cloud_storage.rs
index 874462652a..24fa212a1e 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/code_check_cloud_storage.rs
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/code_check_cloud_storage.rs
@@ -229,7 +229,7 @@ fn cargo_clippy() -> Step<Run> {
/// pgvector service container, tuned env preserved.
fn postgres_service() -> Container {
Container::default()
- .image("pgvector/pgvector:pg16")
+ .image("pgvector/pgvector:pg18")
.env(
Env::new("POSTGRES_USER", "user")
.add("POSTGRES_PASSWORD", "password")
diff --git a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/configure_postgres.sh b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/configure_postgres.sh
index 880e6b53ea..1c99daea7a 100644
--- a/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/configure_postgres.sh
+++ b/tooling/xtask/crates/xtask_workflows/src/workflows/scripts/configure_postgres.sh
@@ -1,6 +1,6 @@
-postgres_container="$(docker ps --format '{{.ID}} {{.Image}}' | awk '$2 == "pgvector/pgvector:pg16" { print $1; exit }')"
+postgres_container="$(docker ps --format '{{.ID}} {{.Image}}' | awk '$2 == "pgvector/pgvector:pg18" { print $1; exit }')"
if [ -z "$postgres_container" ]; then
- echo "pgvector/pgvector:pg16 service container not found" >&2
+ echo "pgvector/pgvector:pg18 service container not found" >&2
docker ps
exit 1
fi