Re: Generating a query that never returns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Generating a query that never returns
Date: 2011-09-19 15:04:47
Message-ID: 17109.1316444687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dave Cramer <pg(at)fastcrypt(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-09-19 15:07:30 Re: A little pg_dump patch
Previous Message Joe Abbate 2011-09-19 14:58:49 Re: Is there really no interest in SQL Standard?