开发者

How triggers behave wrt concurrent visibility of transactions?

开发者 https://www.devze.com 2022-12-25 09:33 出处:网络
I\'m working 开发者_如何学Con PostgreSQL 8.4 in read committed mode. I know that for each query, the server makes a snapshot of db state so that

I'm working 开发者_如何学Con PostgreSQL 8.4 in read committed mode. I know that for each query, the server makes a snapshot of db state so that the query behaves consistently. Does it include triggers that are called in response to this query? Or is there a new snapshot created for each query called from within a trigger?


Triggers work in the same transaction as the outer query, it will see the same snapshot.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号