Re: How many rows if limit wasn't present?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Victor Spång Arthursson <victor(at)tosti(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How many rows if limit wasn't present?
Date: 2005-05-13 12:16:16
Message-ID: 42849A90.801@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Victor Spång Arthursson wrote:
> Ciao!
>
> Is it possible to get the number of rows that would have been returned
> if the LIMIT-clause weren't present in some way after the query was run?
>
> Reason for asking is that I have a really big chunk of SQL, which takes
> time to execute, and whoose result is paginated using a LIMIT- clause,
> and to get the actual result (before pagination) I have to run the
> query one more time… Big slow down…

No. Standard procedure here is to select the results to a temporary
table, or application-level cache etc.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-05-13 12:45:03 Re: How many rows if limit wasn't present?
Previous Message Relyea, Mike 2005-05-13 12:12:04 Re: MS-Access and Stored procedures