Skip site navigation (1) Skip section navigation (2)

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

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Fahad <Fahad(dot)Gilani(at)anusf(dot)anu(dot)edu(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1393: Adding 'LIMIT 1' to the query halts forever if no data present
Date: 2005-01-14 09:20:15
Message-ID: 20050114092015.GC97871@winnie.fuhr.org (view raw or flat)
Thread:
Lists: 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/

In response to

Responses

pgsql-bugs by date

Next:From: Alvaro HerreraDate: 2005-01-14 14:03:14
Subject: Re: Bug Report
Previous:From: Michael FuhrDate: 2005-01-14 09:12:36
Subject: Re: BUG #1392: could not select filter an entry from copied data table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group