From the discussion in case #00452703, we got to know that upsert query with JDBC driver for PostgreSQL is not officially supported. We are submitting this idea for enhancement request to add upsert query support for JDBC driver for PostgreSQL.