pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #9148: generate  invalid index  (create index CONCURRENTLY ... )
2+ messages / 2 participants
[nested] [flat]

* BUG #9148: generate  invalid index  (create index CONCURRENTLY ... )
@ 2014-02-08 06:28  tiyukeji@126.com
  0 siblings, 1 reply; 2+ messages in thread

From: tiyukeji@126.com @ 2014-02-08 06:28 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      9148
Logged by:          tanhongwei(谭洪伟)
Email address:      tiyukeji@126.com
PostgreSQL version: 9.1.9
Operating system:   Debian GNU/Linux 6.0
Description:        

eg :

canceling  sql :
 CREATE INDEX  CONCURRENTLY   t_1_index
  ON t_1  USING btree
  (name);

result:
   index t_1_index exist, but size 0

note:
    select * from pg_index
    where indisvalid  <> true
result : 
   have record.

 


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #9148: generate invalid index (create index CONCURRENTLY ... )
@ 2014-02-08 20:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: tiyukeji@126.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2014-02-08 20:25 UTC (permalink / raw)
  To: tiyukeji@126.com; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-02-08 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-08 06:28 BUG #9148: generate  invalid index  (create index CONCURRENTLY ... ) tiyukeji@126.com
2014-02-08 20:25 ` Re: BUG #9148: generate invalid index (create index CONCURRENTLY ... ) Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox