Re: Generating a query that never returns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Generating a query that never returns
Date
Msg-id 17109.1316444687@sss.pgh.pa.us
Whole thread Raw
In response to Generating a query that never returns  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-hackers
Dave Cramer <pg@fastcrypt.com> writes:
> I have a need to test timeouts in JDBC, is there a query that is
> guaranteed not to return ?

You could just do an unconstrained join between several large tables.
Or "select pg_sleep(largevalue)", depending on whether you'd like the
backend to be spitting data at you or not,
        regards, tom lane


pgsql-hackers by date:

Previous
From: Joe Abbate
Date:
Subject: Re: Is there really no interest in SQL Standard?
Next
From: Andrew Dunstan
Date:
Subject: Re: A little pg_dump patch