pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Chris <dmagick@gmail.com>
Cc: marcosborges@mbsi.com.br
Cc: pgsql-performance@postgresql.org
Subject: Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
Date: Sun, 10 Dec 2006 20:04:38 -0800
Message-ID: <1165809878.19970.2.camel@localhost.localdomain> (raw)
In-Reply-To: <457CD182.7020004@gmail.com>
References: <457814D3.1030001@mbsi.com.br>
	<457CD182.7020004@gmail.com>

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






view thread (9+ messages)  latest in thread

Message-ID: <1165809878.19970.2.camel@localhost.localdomain>
Permalink:  ../1165809878.19970.2.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1165809878.19970.2.camel@localhost.localdomain

 · 

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: jd@commandprompt.com, dmagick@gmail.com, marcosborges@mbsi.com.br
  Subject: Re: SQL_CALC_FOUND_ROWS in POSTGRESQL / Some one can
  In-Reply-To: <1165809878.19970.2.camel@localhost.localdomain>

* 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