You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database type and version: PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
OS: Debian Buster
Describe the bug
HeidiSQL doesn't let you create generated columns and doesn't handle existing columns correctly. Generated columns are the recommended way to create synthetic primary keys in Postgres.
To Reproduce
Connect to a blank Postgres database and create a table using the Query tab:
HeidiSQL gets generation expressions through querying pg_catalog.pg_attrdef for pg_get_expr(ad.adbin, ad.adrelid) - but such IDENDITY values are not returned from there. I need to probably tweak that qGetTableColumns query.
Activity
ansgarbecker commentedon Mar 25, 2026
HeidiSQL gets generation expressions through querying
pg_catalog.pg_attrdefforpg_get_expr(ad.adbin, ad.adrelid)- but such IDENDITY values are not returned from there. I need to probably tweak thatqGetTableColumnsquery.