Silvan and Copilot
7a41fe968b
fix(setup): ensure PostgreSQL 18 compatibility ( #11484 )
...
# Which Problems Are Solved
When starting Zitadel with Postgres version 18, setup fails with the
following error:
`level=error msg="migration failed" caller=".../cmd/setup/setup.go:373"
code=0A000 detail= error="ERROR: partitioned tables cannot be unlogged
(SQLSTATE 0A000)" hint= message="partitioned tables cannot be unlogged"
name=34_add_cache_schema severity=ERROR`
# How the Problems Are Solved
- Modify setup step 34 to ensure compatibility with PostgreSQL 18 by
changing the creation of the partitioned tables to`LOGGED` tables but
keep the partitions `UNLOGGED`.
- Added an additional setup step which alters the table persistence of
the partitioned tables to `LOGGED`.
# Additional Changes
- Bumped Postgres compatibility to version 18 in docs.
- Ensure default partitions for cache tables
## Additional Context
- closes https://github.com/zitadel/zitadel/issues/10712
- backport to v4
- migration from PostgreSQL version 17 to 18 was verified using
`pg_dumpall` and restoring the created backup file
- and new setups using PostgreSQL version 18 directly
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-03 16:23:24 +00:00
..
2023-10-19 12:19:10 +02:00
2022-12-01 14:31:01 +01:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2023-08-15 12:47:05 +00:00
2023-09-22 13:06:59 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2026-02-03 16:23:24 +00:00
2024-10-07 12:49:55 +00:00
2025-09-10 10:06:51 +00:00
2025-04-02 16:53:06 +02:00
2025-01-08 16:54:17 +00:00
2025-02-04 10:47:22 +00:00
2025-03-05 21:48:20 +00:00
2025-03-31 10:06:40 +00:00
2025-04-22 08:42:59 +00:00
2025-06-06 08:48:29 +00:00
2025-10-08 10:27:02 +02:00
2024-01-25 17:28:20 +01:00
2024-01-25 17:28:20 +01:00
2025-08-26 10:14:41 +00:00
2024-01-25 17:28:20 +01:00
2022-12-02 10:48:39 +00:00
2024-01-25 17:28:20 +01:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-01-25 17:28:20 +01:00
2024-01-25 17:28:20 +01:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-01-25 17:28:20 +01:00
2023-11-22 12:05:14 +00:00
2024-01-25 17:28:20 +01:00
2023-12-01 12:25:41 +00:00
2024-01-25 17:28:20 +01:00
2023-12-08 13:14:22 +01:00
2024-01-25 17:28:20 +01:00
2023-12-31 15:30:25 +01:00
2024-01-25 17:28:20 +01:00
2024-01-09 18:36:46 +00:00
2024-01-25 17:28:20 +01:00
2024-01-17 10:16:48 +00:00
2024-01-25 17:28:20 +01:00
2024-01-25 17:28:20 +01:00
2024-03-08 13:33:53 +00:00
2024-03-08 13:33:53 +00:00
2024-03-20 10:18:46 +00:00
2024-03-20 10:18:46 +00:00
2025-02-06 09:45:22 +00:00
2025-01-29 15:12:31 +00:00
2024-05-22 15:26:02 +00:00
2024-05-22 15:26:02 +00:00
2024-09-26 09:14:33 +02:00
2024-05-23 05:04:07 +00:00
2024-07-03 15:00:56 +00:00
2024-07-03 15:00:56 +00:00
2024-12-06 11:32:53 +00:00
2024-12-06 11:32:53 +00:00
2024-07-08 15:54:19 +00:00
2024-07-08 15:54:19 +00:00
2024-09-03 13:19:00 +00:00
2024-09-03 13:19:00 +00:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2024-11-11 11:28:27 +00:00
2024-10-28 08:29:34 +00:00
2024-10-31 15:57:17 +01:00
2024-10-31 15:57:17 +01:00
2025-05-07 14:26:53 +00:00
2024-10-31 15:57:17 +01:00
2024-12-18 16:48:22 +01:00
2024-12-18 16:48:22 +01:00
2025-04-02 16:53:06 +02:00
2025-01-24 11:24:35 +01:00
2024-12-19 10:37:46 +01:00
2024-12-19 10:37:46 +01:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00
2025-01-15 11:22:16 +01:00
2025-01-15 11:22:16 +01:00
2025-04-02 16:53:06 +02:00
2025-01-24 11:24:35 +01:00
2025-02-13 16:03:05 +00:00
2025-02-13 16:03:05 +00:00
2025-04-02 16:53:06 +02:00
2025-02-26 12:20:47 +00:00
2025-02-26 12:20:47 +00:00
2025-03-18 16:23:12 +01:00
2025-03-18 16:23:12 +01:00
2025-03-31 10:06:40 +00:00
2025-04-22 08:42:59 +00:00
2025-09-10 09:26:22 +00:00
2025-09-10 09:26:22 +00:00
2025-05-07 14:26:53 +00:00
2025-05-07 14:26:53 +00:00
2025-05-23 13:52:25 +02:00
2025-05-23 13:52:25 +02:00
2025-06-03 14:15:30 +00:00
2025-06-03 14:15:30 +00:00
2025-06-06 08:48:29 +00:00
2025-06-24 11:41:41 +02:00
2025-07-02 13:57:41 +02:00
2025-08-27 09:07:13 +00:00
2025-08-27 09:07:13 +00:00
2025-09-08 11:00:04 +00:00
2025-09-08 11:00:04 +00:00
2025-09-08 16:30:03 +00:00
2025-09-08 16:30:03 +00:00
2025-09-10 10:06:51 +00:00
2025-09-10 10:06:51 +00:00
2025-09-18 09:50:56 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-12-12 10:09:03 +00:00
2025-12-12 09:09:09 +01:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2026-02-03 16:23:24 +00:00
2026-02-03 16:23:24 +00:00
2026-01-12 05:51:39 +00:00
2025-08-26 10:14:41 +00:00
2026-01-12 05:51:39 +00:00
2026-02-03 16:23:24 +00:00
2024-01-25 17:28:20 +01:00
2025-04-02 16:53:06 +02:00
2026-02-03 16:23:24 +00:00
2026-02-03 13:36:29 +01:00
2025-02-26 16:06:50 +00:00
2025-12-29 13:35:53 +00:00
2025-09-08 16:30:03 +00:00