LWlocks can record in resource owner per tuples, so they can be released at
rigth way, but the memory allocated on memory context is one problem.Are there
any others problems?
电话：(010) 5885 1118 - 8450
From: Amit KapilaDate: 2014-06-17 17:10To: xbzhangCC: Pavel Stehule; Alvaro
Herrera; pgsql-hackersSubject: Re: [HACKERS] How to implement the skip errors
for copy from ?On Tue, Jun 17, 2014 at 12:16 PM, xbzhang
> 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
There might be some LWlocks which might have been takenbefore error and you
won't know which one to free. Another
is that postgres uses memory context to allocate/free memoryin most places, so
there can be allocated memory which needsto be released,
transaction/sub-transaction abort takes care of all
such and many more similar things.
检查工具：AVG - www.avg.com
版本：2013.0.3480 / 病毒数据库：3955/7689 - 发布日期：06/16/14