decodes(class_tne, 'ТНЭ-1Т', all_cur, 0)) as generation_off_t
decodes(class_tne, 'ТНЭ-1Т'::text, all_cur, 0)) as generation_off_t
'a,b' - TEXT, CHAR(3), VARCHAR(), ...
'1' - SMALLINT, INTEGER, BIGINT, TEXT, ...
'{a,b}' - TEXT[], CHAR(1)[], VARCHAR(...)[], ...
'{1,2}' - TEXT[], SMALLINT[], INTEGER[], BIGINT[], ...
'{"a":"b"}' - JSON, JSONB