Re: BUG #9148: generate invalid index (create index CONCURRENTLY ... )

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tiyukeji(at)126(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #9148: generate invalid index (create index CONCURRENTLY ... )
Date: 2014-02-08 20:25:11
Message-ID: 19797.1391891111@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

tiyukeji(at)126(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message linuxhippy 2014-02-09 12:24:04 BUG #9161: wal_writer_delay is limited to 10s
Previous Message Firas Khasawneh 2014-02-08 14:50:23 Re: ODBC Driver not allowing updates into views