Re: BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present
Date
Msg-id 20050114092015.GC97871@winnie.fuhr.org
Whole thread Raw
In response to BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present  ("Fahad" <Fahad.Gilani@anusf.anu.edu.au>)
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: BUG #1392: could not select filter an entry from copied data table
Next
From: Alvaro Herrera
Date:
Subject: Re: Bug Report