Timescale server type misses PostgreSQL generated-column capability and shows GENERATED columns as DEFAULT in DDL
Description
PostgreServerTimescale extends PostgreServerExtensionBase instead of PostgreServerPostgreSQL.
Because of that, it inherits supportsGeneratedColumns() = false from PostgreServerExtensionBase, while PostgreSQL overrides it to true for server version >= 12.
This causes Timescale columns defined as GENERATED ALWAYS AS (...) STORED to be loaded as regular default expressions and shown in DDL as DEFAULT ....
Likely fix: make PostgreServerTimescale extend PostgreServerPostgreSQL, or explicitly override PostgreSQL capabilities such as supportsGeneratedColumns().
DBeaver Version
Community Edition 26.1.3
Operating System
No response
Database and driver
- Database: PostgreSQL 17.7 + TimescaleDB 2.25.2
- Driver: PostgreSQL JDBC Driver 42.7.13
Steps to reproduce
- Connect to a TimescaleDB instance
- Run:
CREATE TABLE people (
height_cm numeric,
height_in numeric GENERATED ALWAYS AS (height_cm / 2.54) STORED
);- Open table DDL in DBeaver
- Observe that
height_inis shown asDEFAULT ...instead ofGENERATED ALWAYS AS (...) STORED:
CREATE TABLE public.people (
height_cm numeric NULL,
height_in numeric DEFAULT height_cm / 2.54 NULL
);Additional context
The same root cause likely affects other PostgreSQL capabilities that PostgreServerPostgreSQL overrides but PostgreServerTimescale does not inherit.
Source: dbeaver/dbeaver