Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can - Mailing list pgsql-performance

From Joshua D. Drake
Subject Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
Date
Msg-id 1165809878.19970.2.camel@localhost.localdomain
Whole thread Raw
In response to Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can helpe  (Chris <dmagick@gmail.com>)
Responses Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
List pgsql-performance
On Mon, 2006-12-11 at 14:33 +1100, Chris wrote:
> Marcos Borges wrote:
> > 07/12/2006 04:31
> > *SQL_CALC_FOUND_ROWS in POSTGRESQL*
> >
> > In mysqln i m using the command SQL_CALC_FOUND_ROWS in follow sintax.
> > SELECT SQL_CALC_FOUND_ROWS name, email, tel FROM mytable WHERE name <>
> > '' LIMIT 0, 10
> > to have the recorset data.
> > and
> > SELECT FOUND_ROWS();
> > to have the total of registers found.
> >
> > I dont want to use the command count(*), because the performance will
> > fall down, depending of the quantyt of tables and "joins".
> >
> > The Data base postgresql have something similar ???
>
> Nope, you're out of luck sorry. That's a mysql-ism and I doubt postgres
> will ever include something similar.

Your language will have a similar binding. Something like pg_numrows.

Sincerely,

Joshua D. Drake



>
--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate




pgsql-performance by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: New to PostgreSQL, performance considerations
Next
From: Chris
Date:
Subject: Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can