On Tue, Jun 17, 2014 at 12:16 PM, xbzhang <xbzh...@kingbase.com.cn> wrote: > > one resource owner per tuples, when error happens, only release resource owner belong to error tuple. > Why some memory structures should be in undefined state? Can you give some examples?
There might be some LWlocks which might have been taken before error and you won't know which one to free. Another is that postgres uses memory context to allocate/free memory in most places, so there can be allocated memory which needs to be released, transaction/sub-transaction abort takes care of all such and many more similar things. With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com