Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1efkco-0008Bc-LV for pgsql-performance@arkaria.postgresql.org; Sun, 28 Jan 2018 10:55:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efkcn-0005xw-2T for pgsql-performance@arkaria.postgresql.org; Sun, 28 Jan 2018 10:55:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1efkcm-0005xm-Ru for pgsql-performance@lists.postgresql.org; Sun, 28 Jan 2018 10:55:48 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1efkcf-00084w-2N for pgsql-performance@postgresql.org; Sun, 28 Jan 2018 10:55:47 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 68F3BADCEC1F for ; Sun, 28 Jan 2018 03:55:38 -0700 (MST) Date: Sun, 28 Jan 2018 03:55:38 -0700 (MST) From: legrand legrand To: pgsql-performance@postgresql.org Message-ID: <1517136938387-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: copy csv into partitioned table with unique index MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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