Options
when does data gets committed during MERGE??
I am using MERGE statement to insert and update data, my question is does vertica commits data at the end of the operations?
0
Comments
Because in document it's not mentioned that you need to issue a
COMMITorROLLBACKcommand to finish the transaction like INSERT has.Merge is another DML command just like INSERT/UPDATE/DELETE, so it should be manually committed unless it is not a part of BEGIN....END transaction.
Now we will run a merge command to update the Test2 table with new records. Lets check if the records are autocommited. Opening a new session and checking .
The records are not committed, unless you execute a explicit COMMIT statement Now the records are committed.
Hope this helps