zlacker

[parent] [thread] 1 comments
1. mdavid+(OP)[view] [source] 2021-12-18 10:06:15
Postgres implicitly creates a transaction for any query modifying data outside of one.

Transactions in MVCC are relatively cheap. The main resource of contention is a global txid that can disastrously wrap around if autovacuum is disabled. That process is responsible for a few other important tasks, like updating statistics for the query planner and maintaining BRIN indexes.

replies(1): >>static+6f1
2. static+6f1[view] [source] 2021-12-18 20:13:27
>>mdavid+(OP)
> Postgres implicitly creates a transaction for any query modifying data outside of one.

I should clarify. I meant holding a transaction for the duration of the message.

[go to top]