PostgreSQL - Transactions and Concurrency
Consider this sequence in PostgreSQL:
What does the SELECT see if another transaction updated the same row before this transaction started?
BEGIN;
SELECT * FROM products WHERE id = 1;
UPDATE products SET price = 20 WHERE id = 1;
COMMIT;What does the SELECT see if another transaction updated the same row before this transaction started?
