From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Greg Smith <greg(at)2ndquadrant(dot)com>, pgsql-docs <pgsql-docs(at)postgresql(dot)org> |
Subject: | Re: Improve warnings around CREATE INDEX CONCURRENTLY |
Date: | 2011-05-25 18:24:09 |
Message-ID: | BANLkTimrkPyin52b=Kq5Hu6ikT5DZ9wW0A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Wed, May 25, 2011 at 6:57 PM, Alvaro Herrera
<alvherre(at)commandprompt(dot)com> wrote:
> Excerpts from Greg Smith's message of mar may 24 17:06:07 -0400 2011:
>> On 05/24/2011 04:48 PM, Alvaro Herrera wrote:
>
>> > Incidentally, this is one of the things that Jim Nasby wanted exposed
>> > somehow so that these problems are more easily diagnosed. I dropped the
>> > ball on that one, but I'll be picking it up again at some point.
>>
>> I don't remember seeing anything about that before, but then again I
>> wasn't really looking for it until now. Did you have a basic idea what
>> you wanted to do there? I have enough of this work queued up now that I
>> may end up poking at the code myself here soon.
>
> Please see this thread:
> http://archives.postgresql.org/message-id/1290465663-sup-9908@alvh.no-ip.org
>
>> The first thing I was considering was dropping some DEBUG2 level logging
>> about the various phases of the reindex into there.
>
> That would take this system more or less to where autovacuum was in 8.1
> (well, not quite that bad because you can change it locally, but still).
> It seems to me we can do something a bit better than that.
It would be fairly straightforward to add some text to the end of the
ps message for long running DDL commands to say "phase 2" etc..
Or pg_stat_activity query text.
That way we would have some visibility into the progress of long
running DDL without too much effort.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Smith | 2011-05-25 21:04:03 | Re: Improve warnings around CREATE INDEX CONCURRENTLY |
Previous Message | Alvaro Herrera | 2011-05-25 17:57:19 | Re: Improve warnings around CREATE INDEX CONCURRENTLY |