Postgresql – CASE tries to evaluate subexpressions before checking the expression
PostgreSQL version: 15 I have dynamic tables with dynamic columns and I need to calculate some abstract property length. If column is array then I need to use array_length function, if column is string then length. I tried to use…