Testing postgres sql compatibility for "with" clause