Re: Output clause for Upsert aka INSERT...ON CONFLICT

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Anand Sowmithiran <anandsowmi2(at)gmail(dot)com>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Output clause for Upsert aka INSERT...ON CONFLICT
Date: 2022-01-27 13:30:08
Message-ID: CAKFQuwaRnESEH=ZmqbfwzXT+twStJ-aVYjFQC9TV-=h5KeY6Cg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday, January 27, 2022, Anand Sowmithiran <anandsowmi2(at)gmail(dot)com>
wrote:
>
> However, the MS SQL server MERGE command also does 'delete' using the
> 'when not matched' clause, is there an equivalent ?
>

PostgreSQL does not have a merge command feature. Just the subset of
behavior that is INSERT…on conflict

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-01-27 13:30:56 Re: psql - add SHOW_ALL_RESULTS option
Previous Message Ajin Cherian 2022-01-27 13:04:04 Re: logical replication empty transactions