SV: copy csv into partitioned table with unique index

2018-01-28 Thread Lars Aksel Opsahl
Hei Sorry it's was a zero to much, it should 30-40 million weather observations pr second. Lars Fra: Lars Aksel Opsahl Sendt: 28. januar 2018 12:57 Til: Mariel Cherkassky; PostgreSQL mailing lists Emne: SV: copy csv into partitioned table with unique

SV: copy csv into partitioned table with unique index

2018-01-28 Thread Lars Aksel Opsahl
atabase. Lars Fra: Mariel Cherkassky Sendt: 28. januar 2018 10:11 Til: PostgreSQL mailing lists Emne: copy csv into partitioned table with unique index Hi, I configured a master table that is called "year_2018" : create table year_2018(a int,b int c date); The master table h

Re: copy csv into partitioned table with unique index

2018-01-28 Thread legrand legrand
Did you try to transform your temp table into a table partition using the ALTER TABLE ATTACH syntax https://www.postgresql.org/docs/10/static/ddl-partitioning.html Regards PAscal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html

copy csv into partitioned table with unique index

2018-01-28 Thread Mariel Cherkassky
Hi, I configured a master table that is called "year_2018" : create table year_2018(a int,b int c date); The master table has a unique constraint on those 3 columns so that I wont have any duplicated rows. Moreover, I configured a before insert trigger on that table that creates a child table for