Re: Partitioning option for COPY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Partitioning option for COPY
Дата
Msg-id 29961.1258476108@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Partitioning option for COPY  (Emmanuel Cecchet <manu@asterdata.com>)
Список pgsql-hackers
Emmanuel Cecchet <manu@asterdata.com> writes:
> Tom Lane wrote:
>> Cache?  Why do you need a cache for COPY?

> Actually the cache is only activated if you use the partitioning option. 
> It is just a list of oids of child tables where tuples were inserted.

Umm ... why is that useful enough to be cached?

> Why do I get this segfault if I use memory from CacheMemoryContext?

Well, CacheMemoryContext will never be reset, so either you freed the
data structure yourself or there's something wrong with the pointer
you think is pointing at the data structure ...
        regards, tom lane


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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Unpredictable shark slowdown after migrating to 8.4
Следующее
От: "Valtonen, Hannu"
Дата:
Сообщение: plpythonu DO support (inline call handler)