pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris <dmagick@gmail.com>
To: marcosborges@mbsi.com.br
Cc: pgsql-performance@postgresql.org
Subject: Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can helpe
Date: Mon, 11 Dec 2006 14:33:22 +1100
Message-ID: <457CD182.7020004@gmail.com> (raw)
In-Reply-To: <457814D3.1030001@mbsi.com.br>
References: <457814D3.1030001@mbsi.com.br>

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.

-- 
Postgresql & php tutorials
http://www.designmagick.com/



view thread (9+ messages)  latest in thread

Message-ID: <457CD182.7020004@gmail.com>
Permalink:  ../457CD182.7020004@gmail.com/
Also on:    postgresql.org/message-id/457CD182.7020004@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: dmagick@gmail.com, marcosborges@mbsi.com.br
  Subject: Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can helpe
  In-Reply-To: <457CD182.7020004@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox