Re: [GENERAL] Inserting millions of record in a partitioned Table

2017-09-20 Thread Rob Sargent
On 09/20/2017 02:46 PM, Vick Khera wrote: On Wed, Sep 20, 2017 at 10:10 AM, Job > wrote: We noticed that if we import directly into the global table it is really, really slow. Importing directly in the single partition is faster. Do you have a rul

Re: [GENERAL] Inserting millions of record in a partitioned Table

2017-09-20 Thread Vick Khera
On Wed, Sep 20, 2017 at 10:10 AM, Job wrote: > We noticed that if we import directly into the global table it is really, > really slow. > Importing directly in the single partition is faster. > > Do you have a rule or trigger on the main table to redirect to the partitions? You should expect that

[GENERAL] Inserting millions of record in a partitioned Table

2017-09-20 Thread Job
Hi guys, with Postgresql 9.6.1 we need to insert, from a certain select query, some millions of record in a partitioned table. The table is partitioned by day. The datas we will import can, often, be mixed between two different days. We noticed that if we import directly into the global table it