On Sat, 31 Jul 2004 21:24:33 -0400, Tom Lane <[EMAIL PROTECTED]> wrote: >Exactly. There's a proof-of-concept test at the bottom of >regress/sql/plpgsql.sql, wherein a function gets control back >from a query that would have run for an unreasonably long time.
referring to | -- we assume this will take longer than 1 second: | select count(*) into x from tenk1 a, tenk1 b, tenk1 c; On Thu, 29 Aug 2002 13:27:36 -0400, Tom Lane <[EMAIL PROTECTED]> wrote: >> You mean, that the test might fail on a system that takes more than >> ten seconds to INSERT or UPDATE a single row? I don't think this is a >> real problem. > >I don't like depending on a timeout *at all* in a regression test; >the exact value of the timeout is not particularly relevant to my >concern about it. Maybe SELECT sleep('0:0:2'::interval); as used in regress/sql/stats.sql is a better way to ensure that the query takes longer than one second? Servus Manfred ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])