Consider the following query made in PostgreSQL 9.1 (or 9.2):
SELECT * FROM foo WHERE bar = true
Suppose this is a rather long request (for example, per minute).
If at the beginning of the query there are 5 million records for which bar = true is executed, and during this query in another transaction there are rows added and deleted in the foo table, and for some existing row updates made in the bar field.
Will any of them affect the result of the above selected query?
I know about transaction isolation and visibility between individual statements in the same transaction, but what about one running statement?
sql postgresql transaction-isolation
dexter meyers
source share