Re: Why does analyze_new_cluster.sh use sleep? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Why does analyze_new_cluster.sh use sleep?
Date
Msg-id 20120827032309.GD28780@momjian.us
Whole thread Raw
In response to Re: Why does analyze_new_cluster.sh use sleep?  (Peter Eisentraut <peter_e@gmx.net>)
List 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@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [patch] Improve documentation around FreeBSD Kernel Tuning
Next
From: Tom Lane
Date:
Subject: Re: Incorrect comment in fe-lobj.c