#41636·dbeaver

Timescale server type misses PostgreSQL generated-column capability and shows GENERATED columns as DEFAULT in DDL

Author: rogerlgaCreated Jul 29, 2026Updated Sep 28, 2026
Labelsexternalxf:sql editorx:timescaledb

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

  1. Connect to a TimescaleDB instance
  2. Run:
sql
CREATE TABLE people (
    height_cm numeric,
    height_in numeric GENERATED ALWAYS AS (height_cm / 2.54) STORED
);
  1. Open table DDL in DBeaver
  2. Observe that height_in is shown as DEFAULT ... instead of GENERATED ALWAYS AS (...) STORED:
sql
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.