Re: How to implement the skip errors for copy from ?

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: How to implement the skip errors for copy from ?
Дата
Msg-id CAA4eK1LJcgomEJYDPP1E-O=_gxdCWP3fVZRYmbrtuXv3_fKCaA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to implement the skip errors for copy from ?  (xbzhang <xbzhang@kingbase.com.cn>)
Список pgsql-hackers
On Tue, Jun 17, 2014 at 12:16 PM, xbzhang <xbzhang@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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: IMPORT FOREIGN SCHEMA statement
Следующее
От: xbzhang
Дата:
Сообщение: Re: How to implement the skip errors for copy from ?