pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Tue, 09 Oct 2012 14:28:48 -0400
Message-ID: <2170.1349807328@sss.pgh.pa.us> (raw)
In-Reply-To: <E1TLVTt-0000G1-FV@wrigleys.postgresql.org>
References: <E1TLVTt-0000G1-FV@wrigleys.postgresql.org>

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




view thread (2+ messages)

Message-ID: <2170.1349807328@sss.pgh.pa.us>
Permalink:  ../2170.1349807328@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2170.1349807328@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, serovov+pgsql@gmail.com
  Subject: Re: BUG #7589: Canceled "CREATE UNIQUE INDEX CONCURRENTLY" leave not-fully-build index existing
  In-Reply-To: <2170.1349807328@sss.pgh.pa.us>
  References: <E1TLVTt-0000G1-FV@wrigleys.postgresql.org> <2170.1349807328@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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