Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLeXz-0003OL-BC for pgsql-bugs@postgresql.org; Tue, 09 Oct 2012 18:28:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLeXy-0006gT-9N for pgsql-bugs@postgresql.org; Tue, 09 Oct 2012 18:28:50 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q99ISmKi002171; Tue, 9 Oct 2012 14:28:48 -0400 (EDT) From: Tom Lane To: serovov+pgsql@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing In-reply-to: References: Comments: In-reply-to serovov+pgsql@gmail.com message dated "Tue, 09 Oct 2012 08:48:01 -0000" Date: Tue, 09 Oct 2012 14:28:48 -0400 Message-ID: <2170.1349807328@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/67 X-Sequence-Number: 34367 serovov+pgsql@gmail.com writes: > 01=# CREATE UNIQUE INDEX CONCURRENTLY obj_pkey ON obj (id); > ERROR: canceling statement due to statement timeout > 01=# CREATE UNIQUE INDEX CONCURRENTLY obj_pkey ON obj (id); > ERROR: relation "obj_pkey" already exists This is not a bug, it is the documented failure behavior of CREATE INDEX CONCURRENTLY. See http://www.postgresql.org/docs/9.2/static/sql-createindex.html#SQL-CREATEINDEX-CONCURRENTLY regards, tom lane