View Issue Details

IDProjectCategoryView StatusLast Update
0006997SymmetricDSImprovementpublic2025-07-16 17:49
Reportermdrouard Assigned To 
Prioritylow 
Status feedbackResolutionopen 
Product Version3.14.0 
Summary0006997: Add support for Postgres ENUM type
DescriptionIf you try to use an enum you get the following message: "enum" is of type enum but expression is of type character varying.
There is currently support for enum types in MySQL. Issues 0004003 and 0002849 relate to the integration of the MySql enum type.
This will likely just need an update to DdlReader and DdlBuilder for Postgres.

This is not exactly like MySql however, enums are not inline in Postgres and require 2 create statements as shown in the example below.
CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
CREATE TABLE person (
    name text,
    current_mood mood
);

This may be closer to SQL Server's user defined types.
Additional Informationhttps://sourceforge.net/p/symmetricds/discussion/739236/thread/39f1abf470/?limit=25#2db0
Tagsdialect: postgresql

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-07-16 17:47 mdrouard New Issue
2025-07-16 17:47 mdrouard Tag Attached: dialect: postgresql
2025-07-16 17:48 mdrouard Status new => feedback
2025-07-16 17:49 mdrouard Project SymmetricDS Pro => SymmetricDS