A PostgreSQL specific MERGE implementation using a single Common Table Expression