Re: Generating a query that never returns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Generating a query that never returns
Дата
Msg-id 17109.1316444687@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Generating a query that never returns  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Joe Abbate
Дата:
Сообщение: Re: Is there really no interest in SQL Standard?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: A little pg_dump patch