Re: BUG #8061: Not count limit offset - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8061: Not count limit offset
Date
Msg-id 20400.1365786218@sss.pgh.pa.us
Whole thread Raw
In response to BUG #8061: Not count limit offset  (claudiomsi@hotmail.com)
List pgsql-bugs
claudiomsi@hotmail.com writes:
> select count(*) from teste; --- 5000
> select count(*) from teste limit 1000 offset 0; --- 5000
> select count(*) from teste limit 1000 offset 1; --- not returning

Of course.  I think perhaps what you are looking for is

    select count(*) from (select 1 from teste limit ...) ss;

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tarvi Pillessaar
Date:
Subject: Re: BUG #8059: sequence crash recovery is not working properly
Next
From: Andres Freund
Date:
Subject: Re: BUG #8059: sequence crash recovery is not working properly