vsql transaction model
The vsql command-line linux utility seems to secretly commit some statements at end of session, but not all statements. CREATE TABLE and DROP TABLE seem to get committed (if you quit vsql and then start a new session, you see your previous changes), but INSERT and DELETE do not.
Is there documentation on what gets secretly committed and what doesn't? Does it depend only on the statement issued, or also what other transactions are in progress?
0
Comments
Dear John
In Vertica, we behave like any ANSI compliant database should:
Hope this helps ...
I might add:
DML statements are: INSERT, UPDATE, DELETE and MERGE.
Oh, and COPY.
Per @marcothesane comments, note that running a DDL operation (i.e. CREATE, DROP, ALTER, TRUNCATE, etc.) will commit any uncommitted DML operations (INSERT, UPDATE, DELETE, MERGE) statements in the transaction.
Example: