From 57dd6cfa74afe69ee94d09a337f32169d1c1675c Mon Sep 17 00:00:00 2001 From: Chiziaruhoma Ogbonda Date: Thu, 24 Sep 2026 14:41:54 +0100 Subject: [PATCH 1/2] docs(cloud): warn that session settings carry over on the pooled endpoint --- cloud_docs/concepts/database.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloud_docs/concepts/database.md b/cloud_docs/concepts/database.md index 72b36525..414e83c3 100644 --- a/cloud_docs/concepts/database.md +++ b/cloud_docs/concepts/database.md @@ -69,6 +69,12 @@ Any PostgreSQL-compatible client works. A few popular options: - `psql`, the standard PostgreSQL command-line client - A PostgreSQL VS Code extension if you prefer to stay in your editor +:::warning + +Session settings can carry over on the pooled endpoint. A `SET` from one connection, such as a change to `search_path`, can still apply the next time you connect as the same user. Use `SET LOCAL` inside a transaction, so the setting ends with the transaction. + +::: + ## Reset the database The `serverpod cloud db wipe` command deletes all tables, all data, and all applied migrations from the managed database. It asks for confirmation by default. From e08eea17da73bf5f27b2d18689f2ea659cd8b2da Mon Sep 17 00:00:00 2001 From: Chiziaruhoma Ogbonda Date: Thu, 24 Sep 2026 18:21:54 +0100 Subject: [PATCH 2/2] Update cloud_docs/concepts/database.md Co-authored-by: Jamiu Okanlawon <50176100+developerjamiu@users.noreply.github.com> --- cloud_docs/concepts/database.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud_docs/concepts/database.md b/cloud_docs/concepts/database.md index 414e83c3..76989d87 100644 --- a/cloud_docs/concepts/database.md +++ b/cloud_docs/concepts/database.md @@ -71,7 +71,7 @@ Any PostgreSQL-compatible client works. A few popular options: :::warning -Session settings can carry over on the pooled endpoint. A `SET` from one connection, such as a change to `search_path`, can still apply the next time you connect as the same user. Use `SET LOCAL` inside a transaction, so the setting ends with the transaction. +Session settings can carry over between direct connections, because they go through a connection pool. A `SET` from one connection, such as a change to `search_path`, can still apply the next time you connect as the same user. Use `SET LOCAL` inside a transaction, so the setting ends with the transaction. :::