Re: Index creation fails with automatic names

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Ian Lawrence Barwick <barwick(at)gmail(dot)com>, Florian Nigsch <flo(at)nigsch(dot)eu>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index creation fails with automatic names
Date: 2013-10-17 19:37:39
Message-ID: 1382038659.43531.YahooMailNeo@web162902.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ian Lawrence Barwick <barwick(at)gmail(dot)com> wrote:

> It works fine for me on Pg 9.3.1:
>
> postgres=# CREATE TABLE foo(val1 text, val2 text);
> CREATE TABLE
> postgres=# CREATE INDEX on foo((lower(val1)));
> CREATE INDEX
> postgres=# CREATE INDEX on foo((lower(val2)));
> CREATE INDEX

You seem to be creating the indexes one at a time, all on the same
connection.  The OP's problem occurs when starting five CREATE
INDEX statements in five different sessions all at the same time.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message AI Rumman 2013-10-17 19:43:54 when do I analyze after concurrent index creation?
Previous Message Kevin Grittner 2013-10-17 19:35:04 Re: Index creation fails with automatic names