hi.https://www.postgresql.org/docs/current/sql-merge.html
Compatibility section:"WITH clause"should be
<literal>WITH</literal> clause