Re: Create index hanging - Mailing list pgsql-general

From Tom Lane
Subject Re: Create index hanging
Date
Msg-id 10143.1153433617@sss.pgh.pa.us
Whole thread Raw
In response to Create index hanging  (Claire McLister <mclister@zeesource.net>)
Responses Re: Create index hanging  (Claire McLister <mclister@zeesource.net>)
List pgsql-general
Claire McLister <mclister@zeesource.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Column info without executing query
Next
From: "Florian G. Pflug"
Date:
Subject: Re: calling stored procedure using ECPG