Re: BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present
Дата
Msg-id 20050114092015.GC97871@winnie.fuhr.org
обсуждение исходный текст
Ответ на BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present  ("Fahad" <Fahad.Gilani@anusf.anu.edu.au>)
Список pgsql-bugs
On Wed, Jan 12, 2005 at 11:08:55PM +0000, Fahad wrote:

> PostgreSQL version: 8.0.0rc2

8.0.0rc5 is the latest -- it would be best to test with that to get
the most recent bug fixes.

> In an empty table, if I do this:
>
> "SELECT some_field WHERE some_field = 45 ORDER BY time";

ERROR:  column "some_field" does not exist

This isn't a valid query.

> This returns instantly with no results. However, doing the following takes
> forever to return:
>
> "SELECT some_field WHERE some_field = 45 ORDER BY time LIMIT 1";

This isn't a valid query either.  Please post an actual test case --
the exact series of steps we can take to reproduce the problem.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1392: could not select filter an entry from copied data table
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Bug Report