Re: Create index hanging

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Claire McLister <mclister(at)zeesource(dot)net>
Cc: pgsql general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Create index hanging
Date: 2006-07-20 22:13:37
Message-ID: 10143.1153433617@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Claire McLister <mclister(at)zeesource(dot)net> writes:
> We have a couple of tables (40,000 and 600,000 rows each) that I am
> trying to build an index on an integer column.

> When I issue the "create index foo_index on foo(id);" command in
> psql it just does not return. I've waited over half an hour for the
> smaller table.

It sounds like someone had a write lock on the table. Did you try
looking in pg_locks?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-07-20 22:16:55 Re: Column info without executing query
Previous Message Claire McLister 2006-07-20 21:28:46 Re: Create index hanging