# \#postgresql

**URL:** https://community.temporal.io/tag/postgresql/134.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [Can Temporal + Postgres handle 60k+ bursty scheduled workflows every 15 minutes?](https://community.temporal.io/t/can-temporal-postgres-handle-60k-bursty-scheduled-workflows-every-15-minutes/19420)

<div class="topic-metadata">

**Author:** [@Udit\_Sharma](https://community.temporal.io/u/Udit_Sharma)\
**Replies:** 0\
**Last updated:** [March 30, 2026, 8:48am UTC](https://community.temporal.io/t/can-temporal-postgres-handle-60k-bursty-scheduled-workflows-every-15-minutes/19420 "2026-03-30T08:48:52Z")

</div>

We have 20,000–60,000+ scheduled workflows, all configured to run every 15 minutes. All jobs on the same interval wake up simultaneously at :00, :15, :30, :45 — so this is a bursty load, not spread evenly. Workflow cha…

---

## [Migrate visibility store from Elastic Search to Postgres](https://community.temporal.io/t/migrate-visibility-store-from-elastic-search-to-postgres/14810)

<div class="topic-metadata">

**Author:** [@sonrel](https://community.temporal.io/u/sonrel)\
**Replies:** 1\
**Last updated:** [January 6, 2026, 11:27am UTC](https://community.temporal.io/t/migrate-visibility-store-from-elastic-search-to-postgres/14810 "2026-01-06T11:27:41Z")

</div>

Hi! We are currently running Eleastic Search as our visibility store on a self hosted Temporal v1.23.1 We want to migrate From ES to Postgres. It seems to me that the recommended way of migrating is through Dual visibi…

---

## [Trying to downgrade from 1.22.0 to 1.21.5](https://community.temporal.io/t/trying-to-downgrade-from-1-22-0-to-1-21-5/18437)

<div class="topic-metadata">

**Author:** [@Rahul\_Kakkadan](https://community.temporal.io/u/Rahul_Kakkadan)\
**Replies:** 1\
**Last updated:** [December 28, 2025, 7:31pm UTC](https://community.temporal.io/t/trying-to-downgrade-from-1-22-0-to-1-21-5/18437 "2025-12-28T19:31:04Z")

</div>

As a part of testing temporal upgrade , I had managed to upgrade from 1.21.3 to temporal latest. I tried to downgrade it to 1.21.3 and the least i can downgrade is till 1.22.0. I had taken a db backup and still the upgr…

---

## [Why does Temporal still delete information from external visibility store?](https://community.temporal.io/t/why-does-temporal-still-delete-information-from-external-visibility-store/18759)

<div class="topic-metadata">

**Author:** [@ParkerSec](https://community.temporal.io/u/ParkerSec)\
**Replies:** 0\
**Last updated:** [December 15, 2025, 3:15pm UTC](https://community.temporal.io/t/why-does-temporal-still-delete-information-from-external-visibility-store/18759 "2025-12-15T15:15:49Z")

</div>

My workflows are tied to my entities (scans), and I polling workflow status from executions\_visibility table, but after a while the information is deleted. The Visibility Store is an external storage, not inside the Temp…

---

## [High CPU Utilization in DB Due to Timer Fires](https://community.temporal.io/t/high-cpu-utilization-in-db-due-to-timer-fires/18711)

<div class="topic-metadata">

**Author:** [@vivek6190](https://community.temporal.io/u/vivek6190)\
**Replies:** 2\
**Last updated:** [December 1, 2025, 4:52am UTC](https://community.temporal.io/t/high-cpu-utilization-in-db-due-to-timer-fires/18711 "2025-12-01T04:52:11Z")

</div>

Hi, We are 1M workflows that triggers timers simultaneously, and this is causing a significant spike in DB CPU utilization—reaching ~90% for about an hour. Our Temporal DB is running on a db.r8g.2xlarge instance. Is th…

---

## [Custom postgresql schema](https://community.temporal.io/t/custom-postgresql-schema/18656)

<div class="topic-metadata">

**Author:** [@sprath](https://community.temporal.io/u/sprath)\
**Replies:** 0\
**Last updated:** [November 12, 2025, 8:00pm UTC](https://community.temporal.io/t/custom-postgresql-schema/18656 "2025-11-12T20:00:08Z")

</div>

I followed this example to setup a custom schema in the db: SQL\_DATABASE=temporal ./temporal-sql-tool --ca search\_path=temporal setup-schema -v 0.0 SQL\_DATABASE=temporal ./temporal-sql-tool --ca search\_path=temporal…

---

## [Cannot connect to RDS - \`sql schema version compatibility check failed: unable to read DB schema version keyspace/database: temporal error: no usable database connection found\`](https://community.temporal.io/t/cannot-connect-to-rds-sql-schema-version-compatibility-check-failed-unable-to-read-db-schema-version-keyspace-database-temporal-error-no-usable-database-connection-found/16648)

<div class="topic-metadata">

**Author:** [@Jan\_Petr](https://community.temporal.io/u/Jan_Petr)\
**Replies:** 3\
**Last updated:** [September 11, 2025, 11:06am UTC](https://community.temporal.io/t/cannot-connect-to-rds-sql-schema-version-compatibility-check-failed-unable-to-read-db-schema-version-keyspace-database-temporal-error-no-usable-database-connection-found/16648 "2025-09-11T11:06:59Z")

</div>

Hello! I’m trying to connect to use RDS as temporal database, but it crashes on sql schema version compatibility check failed: unable to read DB schema version keyspace/database: temporal error: no usable database conne…

---

## [Unable to update postgres schema](https://community.temporal.io/t/unable-to-update-postgres-schema/12772)

<div class="topic-metadata">

**Author:** [@SindhuG](https://community.temporal.io/u/SindhuG)\
**Replies:** 3\
**Last updated:** [September 4, 2025, 4:07pm UTC](https://community.temporal.io/t/unable-to-update-postgres-schema/12772 "2025-09-04T16:07:57Z")

</div>

Hi , While trying to update the schema as part of upgrading temporal server , we are seeing below error. 024-07-09T14:01:15.013+0530 DEBUG Schema Dirs: \[v1.9 v1.10 v1.11\] {“logging-call-at”: “updatetask.go:210”} …

---

## [What's the latest supported version of postgres that is supported?](https://community.temporal.io/t/whats-the-latest-supported-version-of-postgres-that-is-supported/18265)

<div class="topic-metadata">

**Author:** [@jdnewman](https://community.temporal.io/u/jdnewman)\
**Replies:** 0\
**Last updated:** [August 25, 2025, 6:03pm UTC](https://community.temporal.io/t/whats-the-latest-supported-version-of-postgres-that-is-supported/18265 "2025-08-25T18:03:47Z")

</div>

Apologies if this is documented somewhere I’m missing. I suppose the question could be broken into a few: What’s the latest supported/recommended postgres version? What’s the latest should work postgres version, if di…

---

## [Workflow gets stuck in random activities](https://community.temporal.io/t/workflow-gets-stuck-in-random-activities/18198)

<div class="topic-metadata">

**Author:** [@arturobac](https://community.temporal.io/u/arturobac)\
**Replies:** 5\
**Last updated:** [August 18, 2025, 4:37pm UTC](https://community.temporal.io/t/workflow-gets-stuck-in-random-activities/18198 "2025-08-18T16:37:17Z")

</div>

Hi Team, I have the following setup: k8s, Temporal Helm Chart 0.65.0, PostgreSQL-HA Bitnami Helm Chart 16.0.22, some other containers (activity workers) - with one replica to make testing easier: core-79566f69bf-d8smx …

---

## [Postgres connection churn](https://community.temporal.io/t/postgres-connection-churn/9612)

<div class="topic-metadata">

**Author:** [@Hardik\_Sethi](https://community.temporal.io/u/Hardik_Sethi)\
**Replies:** 5\
**Last updated:** [June 23, 2025, 4:35am UTC](https://community.temporal.io/t/postgres-connection-churn/9612 "2025-06-23T04:35:27Z")

</div>

datastores: default: sql: &postgresql\_config pluginName: postgres databaseName: temporal connectAddr: postgres.example.com:5432 connectProtocol: tcp maxConns: 20 maxIdleConns: 20 maxConnLifetime: “30m” We are u…

---

## [Impact of temporarily taking the visibility Postgres DB offline (12 → 16 upgrade)](https://community.temporal.io/t/impact-of-temporarily-taking-the-visibility-postgres-db-offline-12-16-upgrade/17612)

<div class="topic-metadata">

**Author:** [@rsparihar](https://community.temporal.io/u/rsparihar)\
**Replies:** 6\
**Last updated:** [June 13, 2025, 11:33pm UTC](https://community.temporal.io/t/impact-of-temporarily-taking-the-visibility-postgres-db-offline-12-16-upgrade/17612 "2025-06-13T23:33:28Z")

</div>

Hello team, We run Temporal (Server version 1.18.5, UI version 2.10.3) as a self-hosted cluster in production. Our persistence layer is split as follows: Executions DB – MongoDB 7 (stays online) Visibility DB – separ…

---

## [Temporal server and PostgreSQL v13.4](https://community.temporal.io/t/temporal-server-and-postgresql-v13-4/3182)

<div class="topic-metadata">

**Author:** [@Hamed\_Yousefi](https://community.temporal.io/u/Hamed_Yousefi)\
**Replies:** 3\
**Last updated:** [May 8, 2025, 12:26pm UTC](https://community.temporal.io/t/temporal-server-and-postgresql-v13-4/3182 "2025-05-08T12:26:31Z")

</div>

I’m working on a PoC with temporal in the blockchain field. We’re using PostgreSQL v13.4 in our company. As I read in temporal docs, it supports PostgreSQL v9.6. I ran the temporal server with PostgreSQL v13.4, and it wo…

---

## [Temporal is opening up more than maxConns to our Postgres database](https://community.temporal.io/t/temporal-is-opening-up-more-than-maxconns-to-our-postgres-database/17243)

<div class="topic-metadata">

**Author:** [@Sanil\_Khurana2](https://community.temporal.io/u/Sanil_Khurana2)\
**Replies:** 0\
**Last updated:** [April 26, 2025, 7:45pm UTC](https://community.temporal.io/t/temporal-is-opening-up-more-than-maxconns-to-our-postgres-database/17243 "2025-04-26T19:45:49Z")

</div>

Hey folks, we started using temporal a few months ago and have recently noticed that the number of connections its opening to our postgres instance is higher than the maxConns we have configured. For each temporal servi…

---

## [High DB Connections on Postgres due to Temporal](https://community.temporal.io/t/high-db-connections-on-postgres-due-to-temporal/17174)

<div class="topic-metadata">

**Author:** [@Ujala\_Singh](https://community.temporal.io/u/Ujala_Singh)\
**Replies:** 0\
**Last updated:** [April 17, 2025, 5:11pm UTC](https://community.temporal.io/t/high-db-connections-on-postgres-due-to-temporal/17174 "2025-04-17T17:11:18Z")

</div>

We are getting DB connections count for temporal user above 60 (Limit is 70 per user in our setup) sometimes it goes above 100 as well, and there is a pattern to it. A lot of queries are being blocked and in long running…

---

## [Issue with Temporal Scheduler Skipping Executions](https://community.temporal.io/t/issue-with-temporal-scheduler-skipping-executions/16842)

<div class="topic-metadata">

**Author:** [@Rohit](https://community.temporal.io/u/Rohit)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 2:01pm UTC](https://community.temporal.io/t/issue-with-temporal-scheduler-skipping-executions/16842 "2025-03-31T14:01:31Z")

</div>

I’m experiencing an issue with Temporal Schedules and would appreciate your insights. Here’s the scenario: I have a scheduled Temporal workflow that triggers every Saturday at 1:00 AM EST. March 8th, 2025, was the run …

---

## [AlloyDB integration with Temporal](https://community.temporal.io/t/alloydb-integration-with-temporal/16977)

<div class="topic-metadata">

**Author:** [@ajale-panw](https://community.temporal.io/u/ajale-panw)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 1:04am UTC](https://community.temporal.io/t/alloydb-integration-with-temporal/16977 "2025-03-31T01:04:25Z")

</div>

We are facing issues when trying to attach an AlloyDB auth proxy sidecar to Temporal. Temporal is working when connected to a standard postgres db and the AlloyDB sidecar is working when attached to other pods, but Tempo…

---

## [Workflow Activity gets stuck intermittently](https://community.temporal.io/t/workflow-activity-gets-stuck-intermittently/16929)

<div class="topic-metadata">

**Author:** [@inishchith](https://community.temporal.io/u/inishchith)\
**Replies:** 7\
**Last updated:** [March 29, 2025, 4:49pm UTC](https://community.temporal.io/t/workflow-activity-gets-stuck-intermittently/16929 "2025-03-29T16:49:02Z")

</div>

Hi Team, For context, we have long running activities in temporal and we self-host the temporal cluster. We’re observing 2 cases of workflow getting stuck intermittently and not progressing indefinitely Here the work…

---

## [250ms latency for a workflow with 2 empty activities](https://community.temporal.io/t/250ms-latency-for-a-workflow-with-2-empty-activities/16771)

<div class="topic-metadata">

**Author:** [@abhishek.more](https://community.temporal.io/u/abhishek.more)\
**Replies:** 5\
**Last updated:** [March 26, 2025, 8:26am UTC](https://community.temporal.io/t/250ms-latency-for-a-workflow-with-2-empty-activities/16771 "2025-03-26T08:26:19Z")

</div>

I did load testing of self-hosted temporal deployment temporal version: 1.25 postgres17 m7g8xlarge single az deployed on aws managed k8s with 12 pods for frontend, matching and history service each Have configured HP…

---

## [Database CPU spike when multiple workflows are triggered simultaneously](https://community.temporal.io/t/database-cpu-spike-when-multiple-workflows-are-triggered-simultaneously/16834)

<div class="topic-metadata">

**Author:** [@Dakshay\_S](https://community.temporal.io/u/Dakshay_S)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 2:28pm UTC](https://community.temporal.io/t/database-cpu-spike-when-multiple-workflows-are-triggered-simultaneously/16834 "2025-03-25T14:28:14Z")

</div>

We’re using AWS Aurora PostgreSQL (db.r6g.2xlarge) as the underlying database for our temporal-server. When around 6,000 workflows were triggered within 4 minutes, DB CPU utilization spiked. We’re seeking best practices …

---

## [Many activity Schedule to start errors](https://community.temporal.io/t/many-activity-schedule-to-start-errors/16011)

<div class="topic-metadata">

**Author:** [@Omri\_Shilton](https://community.temporal.io/u/Omri_Shilton)\
**Replies:** 3\
**Last updated:** [March 10, 2025, 1:41am UTC](https://community.temporal.io/t/many-activity-schedule-to-start-errors/16011 "2025-03-10T01:41:57Z")

</div>

We are running a temporal cluster on our EKS: The problem we are facing is that we have around 100k workflows per day, each workflow have many activities. each activity task queue is issues to a different worker pod. m…

---

## [How to scale temporal to run across multiple hosts for HA](https://community.temporal.io/t/how-to-scale-temporal-to-run-across-multiple-hosts-for-ha/10012)

<div class="topic-metadata">

**Author:** [@wshv](https://community.temporal.io/u/wshv)\
**Replies:** 5\
**Last updated:** [February 24, 2025, 11:57am UTC](https://community.temporal.io/t/how-to-scale-temporal-to-run-across-multiple-hosts-for-ha/10012 "2025-02-24T11:57:30Z")

</div>

Hello, I’m looking forward to running temporal in a production-ready way. What we’ve done In the initial experiment, we currently run temporal using docker-compose and each major component corresponds to a container t…

---

## [State transition builds up and suddenly drops](https://community.temporal.io/t/state-transition-builds-up-and-suddenly-drops/16366)

<div class="topic-metadata">

**Author:** [@chillguy16](https://community.temporal.io/u/chillguy16)\
**Replies:** 1\
**Last updated:** [February 9, 2025, 2:46am UTC](https://community.temporal.io/t/state-transition-builds-up-and-suddenly-drops/16366 "2025-02-09T02:46:57Z")

</div>

We are doing capacity planning. We are finding our target state transition per second to estimate resources. However, we notice a weird pattern of state transition in the current setup. The Datadog metric we are readi…

---

## [Temporal PostgresQL RAM usage too high](https://community.temporal.io/t/temporal-postgresql-ram-usage-too-high/16324)

<div class="topic-metadata">

**Author:** [@chillguy16](https://community.temporal.io/u/chillguy16)\
**Replies:** 0\
**Last updated:** [January 31, 2025, 1:22pm UTC](https://community.temporal.io/t/temporal-postgresql-ram-usage-too-high/16324 "2025-01-31T13:22:44Z")

</div>

We have been noticing suspiciously high ram usage in our single-instance temporal postgresdb. We noticed it is taking about 100GB of RAM(!!!) This came after a spike in our system’s usage. We’re running about 6 million …

---

## [PostgreSQL: good option for persistence in production?](https://community.temporal.io/t/postgresql-good-option-for-persistence-in-production/6153)

<div class="topic-metadata">

**Author:** [@Nathan](https://community.temporal.io/u/Nathan)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 4:53am UTC](https://community.temporal.io/t/postgresql-good-option-for-persistence-in-production/6153 "2025-01-22T04:53:27Z")

</div>

Hello dear community ! In my company, we started to use Temporal in different teams for production purpose. We chose to deploy Temporal with a PostgreSQL persistence backend, for two main reasons: we have a dedicated t…

---

## [Scheduled Workflow skipping execution cycles](https://community.temporal.io/t/scheduled-workflow-skipping-execution-cycles/14924)

<div class="topic-metadata">

**Author:** [@anthony](https://community.temporal.io/u/anthony)\
**Replies:** 1\
**Last updated:** [October 30, 2024, 12:43am UTC](https://community.temporal.io/t/scheduled-workflow-skipping-execution-cycles/14924 "2024-10-30T00:43:43Z")

</div>

I deployed temporal OSS (v 2.31.2) in my k8s cluster and I created a simple Workflow with few activities (6) to do some processing. The workflow is set to run every 3s (via the scheduler). It runs okay for a while, but …

---

## [High Availability Cross Region Deployment](https://community.temporal.io/t/high-availability-cross-region-deployment/13738)

<div class="topic-metadata">

**Author:** [@alio](https://community.temporal.io/u/alio)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 7:49am UTC](https://community.temporal.io/t/high-availability-cross-region-deployment/13738 "2024-10-02T07:49:35Z")

</div>

Hi everyone. Since Temporal is getting more critical within our organization with an increasing volume of usage and dependency, we’re looking for a way to include Temporal deployment in our business continuity implement…

---

## [Temporal workflow piling up with high load. Not completing quick enough](https://community.temporal.io/t/temporal-workflow-piling-up-with-high-load-not-completing-quick-enough/13033)

<div class="topic-metadata">

**Author:** [@fox570425](https://community.temporal.io/u/fox570425)\
**Replies:** 1\
**Last updated:** [August 2, 2024, 1:19am UTC](https://community.temporal.io/t/temporal-workflow-piling-up-with-high-load-not-completing-quick-enough/13033 "2024-08-02T01:19:37Z")

</div>

We have been noticing that our implementation completes very slow under high load and we would like to know how we can increase throughput. A key feature of our implementation is the use of recursion to spawn child work…

---

## [Can't able to deploy temporal with postgresql db](https://community.temporal.io/t/cant-able-to-deploy-temporal-with-postgresql-db/12956)

<div class="topic-metadata">

**Author:** [@Vishwesh\_Sahai\_C](https://community.temporal.io/u/Vishwesh_Sahai_C)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 11:21am UTC](https://community.temporal.io/t/cant-able-to-deploy-temporal-with-postgresql-db/12956 "2024-07-25T11:21:52Z")

</div>

1 ) We were deploying temporal with postgresql db following the readme file of temporal helm charts during deployment the four components of temporal which is frontend, history, matching and worker are in the init state …

---

## [Is it safe to use pool\_mode:session for pgbouncer (for postgres) with temporal?](https://community.temporal.io/t/is-it-safe-to-use-pool-mode-session-for-pgbouncer-for-postgres-with-temporal/12951)

<div class="topic-metadata">

**Author:** [@Avi\_Moondra](https://community.temporal.io/u/Avi_Moondra)\
**Replies:** 0\
**Last updated:** [July 24, 2024, 8:25pm UTC](https://community.temporal.io/t/is-it-safe-to-use-pool-mode-session-for-pgbouncer-for-postgres-with-temporal/12951 "2024-07-24T20:25:46Z")

</div>

Not seeing too much in the forums about this but wondering if it is possible to run Temporal self-hosted with pg bouncer in front of postgres. Seem to be running into errors like 2024-07-24T15:26:47.810Z \[34mINFO\[0m Up…

[Next page](https://community.temporal.io/tag/postgresql/134.md?match_all_tags=true&page=1&tags%5B%5D=postgresql)
