X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 99C22D70A4 for ; Mon, 22 Aug 2005 13:24:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69433-01 for ; Mon, 22 Aug 2005 16:24:29 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 5EC51D707F for ; Mon, 22 Aug 2005 13:24:27 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j7MGOHg12583; Mon, 22 Aug 2005 12:24:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200508221624.j7MGOHg12583@candle.pha.pa.us> Subject: Re: sleep? In-Reply-To: <16418.1124726199@sss.pgh.pa.us> To: Tom Lane Date: Mon, 22 Aug 2005 12:24:17 -0400 (EDT) Cc: Michael Fuhr , Don Drake , John DeSoi , Guido Barosio , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200508/266 X-Sequence-Number: 18585 Tom Lane wrote: > Bruce Momjian writes: > > Michael Fuhr wrote: > >> Do you have any use cases in addition to what's already been > >> mentioned? Sleeping isn't really a database operation, so there > >> needs to be some justification for making it a standard function. > > > Well, we needed it for our own regression tests, so I assume others > > would need it as well. > > ... and you'll notice that the regression test that uses it is still > failing intermittently on some of the buildfarm machines, which rather > calls the whole approach into question ... It means that our use of sleep() wasn't the fix, but we need it to try, didn't we? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073