Re: Partitioning option for COPY - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Partitioning option for COPY
Date
Msg-id 29961.1258476108@sss.pgh.pa.us
Whole thread Raw
In response to Re: Partitioning option for COPY  (Emmanuel Cecchet <manu@asterdata.com>)
List 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 by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: Unpredictable shark slowdown after migrating to 8.4
Next
From: "Valtonen, Hannu"
Date:
Subject: plpythonu DO support (inline call handler)