Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created October 10, 2021 12:58
Show Gist options
  • Save MartinThoma/438ace8f7b3727fcec37c90cd6620d49 to your computer and use it in GitHub Desktop.
Save MartinThoma/438ace8f7b3727fcec37c90cd6620d49 to your computer and use it in GitHub Desktop.
start transaction isolation level read committed;
SELECT * FROM balances;
id | balance
-------+---------
Alice | 500
Bob | 500
(2 rows)
INSERT INTO
balances
(id, balance)
VALUES
('Charlie', 500);
# SELECT * FROM balances;
id | balance
---------+---------
Alice | 500
Bob | 500
Charlie | 500
(3 rows)
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment