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