Re: Why does analyze_new_cluster.sh use sleep?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Why does analyze_new_cluster.sh use sleep?
Date: 2012-08-27 03:23:09
Message-ID: 20120827032309.GD28780@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Aug 26, 2012 at 11:12:15PM -0400, Peter Eisentraut wrote:
> On Fri, 2012-08-24 at 08:19 -0400, Bruce Momjian wrote:
> > Well, the idea is that the script is running stages, and your system is
> > mostly useful after the first stage is done. I don't see a keypress as
> > helping there. I think this is different from the vacuumdb case.
>
> Well, this is all debatable, but we certainly don't need the sleep
> before the first vacuum, do we?

That sleep is there so they can react to this line:

fprintf(script, "echo %sIf you would like default statistics as
quickly as possible, cancel%s\n",

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-08-27 03:47:52 Re: Incorrect comment in fe-lobj.c
Previous Message Bruce Momjian 2012-08-27 03:22:02 Re: [patch] Improve documentation around FreeBSD Kernel Tuning