PostgreSQL update and locking tip

Start a PostgreSQL server using docker: docker run --rm --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres open one terminal ( A ): docker exec -it some-postgres psql -U postgres and create a table and insert one row CREATE table accounts( id TEXT PRIMARY KEY, name TEXT NOT NULL ); INSERT INTO accounts(id, name) VALUES ('9e6f35d3-f53a-423f-a0d6-d60c441e3b40', 'Georgios'); Now try:…