Re: ask for review of MERGE - Mailing list pgsql-hackers

From Boxuan Zhai
Subject Re: ask for review of MERGE
Date
Msg-id AANLkTikg1jSBAY+tQQi=xP1fBbwLgHms9HawsH6wZ0_M@mail.gmail.com
Whole thread Raw
In response to Re: ask for review of MERGE  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hi,
 
I considered the empty source table situation again. I think it is correct to upsert nothing in this case.
 
Back to the original logic of MERGE command, it is main purpose is to add the supplementary data from the source table into the target table. Thus, an empty source table means no input data is available, so no upsert is needed in target table.
 
 
Regards,
Boxuan

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Domains versus arrays versus typmods
Next
From: Robert Haas
Date:
Subject: Re: leaky views, yet again