Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3C682B5DC09 for ; Wed, 25 May 2011 15:45:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23644-01 for ; Wed, 25 May 2011 18:45:44 +0000 (UTC) X-Greylist: delayed 00:21:29.255169 by SQLgrey-1.7.6 Received: from outmail148113.authsmtp.com (outmail148113.authsmtp.com [62.13.148.113]) by mail.postgresql.org (Postfix) with ESMTP id 33BB8B5DBDE for ; Wed, 25 May 2011 15:45:43 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p4PIODwQ018243 for ; Wed, 25 May 2011 19:24:13 +0100 (BST) Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p4PIO9gx064946 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Wed, 25 May 2011 19:24:10 +0100 (BST) Received: by qwk3 with SMTP id 3so4040577qwk.19 for ; Wed, 25 May 2011 11:24:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.43.209 with SMTP id x17mr4048841qce.257.1306347849460; Wed, 25 May 2011 11:24:09 -0700 (PDT) Received: by 10.229.229.146 with HTTP; Wed, 25 May 2011 11:24:09 -0700 (PDT) In-Reply-To: <1306346092-sup-2903@alvh.no-ip.org> References: <4DDB64CB.7070109@2ndQuadrant.com> <1306269968-sup-2890@alvh.no-ip.org> <4DDC1DBF.3050306@2ndQuadrant.com> <1306346092-sup-2903@alvh.no-ip.org> Date: Wed, 25 May 2011 19:24:09 +0100 Message-ID: Subject: Re: Improve warnings around CREATE INDEX CONCURRENTLY From: Simon Riggs To: Alvaro Herrera Cc: Greg Smith , pgsql-docs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Server-Quench: 2f7c05ff-86fc-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MOFUSTAAU PkFRNXJLN0YASktU QCdXRQsWBxNzXHwI OkNObwVcY1pPVg9o VEJIQhxQFAx2CRkf BB8YTB10aABOf2Fx KwZmPgkkVRMydUB5 S0pSW2gHYmUuajYY A0BdIVVJeAUcLQJE awV/SXoKMzcaZnpi RVFvbm9hYGwPPh5Y EEk+AXU5enNDPzsk XRccEH0wFFcDRiM8 NFQvMFkBGkpZGX8f GGcMEXM+HzIiQiZ5 OWpwOhV0AWUldkIA X-Authentic-SMTP: 61633235383639.1014:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/84 X-Sequence-Number: 6759 On Wed, May 25, 2011 at 6:57 PM, Alvaro Herrera 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. =A0I 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. =A0Did you have a basic idea wha= t >> you wanted to do there? =A0I 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. --=20 =A0Simon Riggs=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 http:/= /www.2ndQuadrant.com/ =A0PostgreSQL Development, 24x7 Support, Training & Services