All the solutions ive found to find your current Creatio version/distribution require you to use a specific MSSQL SQL query that doesnt work with PostgreSQL and doesnt seem to have any easy syntax conversion, does anyone have any ideas?
SELECT "Name", "TextValue" FROM public."SysSettings"
left join public."SysSettingsValue" on public."SysSettings"."Id"= Public."SysSettingsValue"."SysSettingsId"
where "Name"='Product version'
SELECT "Name", "TextValue" FROM public."SysSettings"
left join public."SysSettingsValue" on public."SysSettings"."Id"= Public."SysSettingsValue"."SysSettingsId"
where "Name"='Configuration version'
SELECT "Name", "TextValue" FROM public."SysSettings"
left join public."SysSettingsValue" on public."SysSettings"."Id"= Public."SysSettingsValue"."SysSettingsId"
where "Name"='Product version'