Re: alter table is taking a long time - Mailing list pgsql-general

From Thom Brown
Subject Re: alter table is taking a long time
Date
Msg-id bddc86150911062229k462ecc5bq3cbb9982ae6a1446@mail.gmail.com
Whole thread Raw
In response to Re: alter table is taking a long time  ("stanciutheone@gmail.com" <stanciutheone@gmail.com>)
List pgsql-general
2009/11/7 stanciutheone@gmail.com <stanciutheone@gmail.com>:
> There is no one that can tell me what i can do here, or they will do
> here
>
> I'm thinking to restart postgrsql but what will happen with my table
> that i'm just altering just a filter
>
>
> On Nov 7, 2:38 am, "stanciuthe...@gmail.com" <stanciuthe...@gmail.com>
> wrote:
>> Hi
>> i have main table where and that table i have inherited 64 times, but
>> today i needed some extra space to a column so i have run an alter
>> table to one of my columns
>>
>> the query is running for over 4 hours and i don't have a clue when it
>> will stop, the storage of this 64 table has around 30 and milions of
>> records,
>>
>> Any advices on what i should need to do next,
>>
>> Regards
>
>
Does the column you're altering have a check constraint, primary key
(possibly with cascade on it) or an index on it?  And what is the
structure of the inheritance?  For example, do you have a
straightforward 1 parent, many children tree?

Thom

pgsql-general by date:

Previous
From: "stanciutheone@gmail.com"
Date:
Subject: alter table is taking a long time
Next
From: David Fetter
Date:
Subject: Re: How to import data from Oracle and SqlServer to a Postgres database?