Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bos40-0002fz-HO for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Sep 2016 13:04:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bos3z-0004Nr-Jy for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Sep 2016 13:04:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bos3z-0004NB-0g for pgsql-bugs@postgresql.org; Tue, 27 Sep 2016 13:04:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bos3v-0001cF-KV for pgsql-bugs@postgresql.org; Tue, 27 Sep 2016 13:04:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8RD4YpT027412; Tue, 27 Sep 2016 09:04:35 -0400 From: Tom Lane To: digoal@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14341: insert on conflict (key_column) cann't used with partition table. In-reply-to: <20160927121914.27030.28215@wrigleys.postgresql.org> References: <20160927121914.27030.28215@wrigleys.postgresql.org> Comments: In-reply-to digoal@126.com message dated "Tue, 27 Sep 2016 12:19:14 -0000" Date: Tue, 27 Sep 2016 09:04:34 -0400 Message-ID: <27411.1474981474@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org digoal@126.com writes: > postgres=# \d test > Table "postgres.test" > Column | Type | Modifiers > ----------+-----------------------------+----------- > id | integer | not null > info | text | > crt_time | timestamp without time zone | > Indexes: > "test_pkey" PRIMARY KEY, btree (id) > Number of child tables: 100 (Use \d+ to list them.) > postgres=# insert into test(id,info,crt_time) values(1, md5(random()::text), > now()) on conflict (id) do update set > info=excluded.info,crt_time=excluded.crt_time; > ERROR: XX000: unexpected failure to find arbiter index > LOCATION: ExecCheckIndexConstraints, execIndexing.c:594 Can't reproduce that on the basis of the given information. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs