Open dhiaayachi opened 2 months ago
You are correct! The error message you're seeing indicates that you need to switch to the postgres12
plugin for both your default schema and visibility schema in Temporal Server v1.24.0 and beyond.
Here's a breakdown of the issue and the necessary steps:
The Problem
Temporal Server v1.24.0 introduces a change in the supported plugins for PostgreSQL. Previously, you could use the postgres
plugin for both the default schema and the visibility schema. Now, the postgres12
plugin is required for both.
Why the Change?
This change aligns with Temporal's support for advanced visibility features, which require PostgreSQL 12 or higher. The postgres12
plugin ensures compatibility with these features and better performance.
What to Do
Update Your Database Schema:
temporal-sql-tool
with the postgres12
plugin to update your default schema.postgres12
for your visibility schema, so no further action is needed here.Reconfigure Your Temporal Server:
postgres12
plugin for both your default schema and visibility schema. Additional Considerations
Reference Links
Let me know if you have any further questions or need more guidance on the upgrade process.
Thanks for reporting this issue!
You are correct, Temporal Server v1.24.0 and later require using the postgres12
driver for the default schema as well. You can switch to the postgres12
plugin for your default schema, but remember, it needs to match your PostgreSQL version (which you're already running on version 16).
This change was not documented in the release notes and will be updated in the upcoming release notes.
Thanks for reporting this! It appears you are running into an issue with Temporal's SQL schema compatibility when upgrading from 1.23.1 to 1.24.0.
It seems that the postgres
plugin is no longer supported, and only postgres12
, postgres12_pgx
, mysql8
, and sqlite
are supported. You'll need to migrate your default schema to use the postgres12
plugin.
You can follow the instructions for upgrading the schema found here: https://docs.temporal.io/self-hosted-guide/upgrade-server. You will need to use the temporal-sql-tool
to upgrade your schema.
Let me know if you have any other questions!
Thanks for reporting this issue! It seems like you're running into an incompatibility between the postgres
driver and Temporal Server 1.24.0.
Temporal Server 1.24.0 requires the postgres12
driver for the default schema. As you're using PostgreSQL 16, you'll need to switch to the postgres12
driver for both your default and visibility schemas.
You can change the driver in your Temporal configuration. Refer to the Server Options documentation for more details on how to do this.
Thanks for reporting this. This is a known issue and has been addressed in Temporal Server 1.24.0.
The postgres
plugin has been deprecated in favor of the postgres12
plugin, which provides better performance and compatibility. This means that you need to switch to the postgres12
plugin for both your default schema and your visibility schema.
Please refer to the Temporal Server release notes for more details on the upgrade process and any other changes made in the latest version.
You can find the documentation for the postgres12
plugin here.
running 1.23.1, I have the
postgres
driver for the default schmea, andpostgres_12
for the visibility schema (in order to have advanced visibilty.)when I upgrade to 1.24.0, I get this error:
I'm guessing that means I need to switch to the
postgres12
plugin for the default schema now as well?That's no problem for me, I'm running postgres16. Just wondering if this is expected; I didn't see it mentioned in the release notes.