Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCESp-0005CU-KN for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Feb 2014 20:25:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WCESp-0008Gd-3l for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Feb 2014 20:25:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCESo-0008GW-Hv for pgsql-bugs@postgresql.org; Sat, 08 Feb 2014 20:25:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WCESl-0003Nt-QB for pgsql-bugs@postgresql.org; Sat, 08 Feb 2014 20:25:22 +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 s18KPBDi019798; Sat, 8 Feb 2014 15:25:11 -0500 From: Tom Lane To: tiyukeji@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9148: generate invalid index (create index CONCURRENTLY ... ) In-reply-to: <20140208062848.26700.46932@wrigleys.postgresql.org> References: <20140208062848.26700.46932@wrigleys.postgresql.org> Comments: In-reply-to tiyukeji@126.com message dated "Sat, 08 Feb 2014 06:28:48 +0000" Date: Sat, 08 Feb 2014 15:25:11 -0500 Message-ID: <19797.1391891111@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 tiyukeji@126.com writes: > canceling sql : > CREATE INDEX CONCURRENTLY t_1_index > ON t_1 USING btree > (name); > result: > index t_1_index exist, but size 0 This is expected when using CREATE INDEX CONCURRENTLY. See the notes at http://www.postgresql.org/docs/9.3/static/sql-createindex.html#SQL-CREATEINDEX-CONCURRENTLY which say "If a problem arises while scanning the table ... the CREATE INDEX command will fail but leave behind an "invalid" index." 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