pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing
2+ messages / 2 participants
[nested] [flat]

* BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing
@ 2012-10-09 08:48  serovov+pgsql@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: serovov+pgsql@gmail.com @ 2012-10-09 08:48 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      7589
Logged by:          Oleg
Email address:      serovov+pgsql@gmail.com
PostgreSQL version: 9.1.6
Operating system:   CentOs
Description:        

See sql console: 

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);
01=# CREATE UNIQUE INDEX CONCURRENTLY obj_pkey ON obj (id);
ERROR:  relation "obj_pkey" already exists
01=# SELECT version();
PostgreSQL 9.1.6 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2
20080704 (Red Hat 4.1.2-52), 64-bit
(1 row)






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

* Re: BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing
@ 2012-10-09 18:28  Tom Lane <tgl@sss.pgh.pa.us>
  parent: serovov+pgsql@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2012-10-09 18:28 UTC (permalink / raw)
  To: serovov+pgsql@gmail.com; +Cc: pgsql-bugs

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




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


end of thread, other threads:[~2012-10-09 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 08:48 BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing serovov+pgsql@gmail.com
2012-10-09 18:28 ` 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