摘要: 当PostgreSQL需要insert 一条记录的时候,它会把记录头放入xmin,xmax等字段。xmin的值,就是当前的Transaction的TransactionId。这是为了满足MVCC的需要。跟踪程序进行了解:/* * Allocate the next XID for a new transaction or subtransaction. * * The new XID is also stored into MyProc before returning. * * Note: when this is called, we are actually already inside 阅读全文
posted @ 2013-06-28 16:58 健哥的数据花园 阅读(3644) 评论(0) 推荐(1)