pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: apparent problem with a PL
Date: Fri, 18 Apr 2003 23:50:09 -0700 (PDT)
Message-ID: <20030418234848.N10642-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <200304191129.39347.mallah@trade-india.com>


On Sat, 19 Apr 2003, Rajesh Kumar Mallah wrote:

> If I limit  a particular query to show 3 results which has a function call
> how can the function get called 4 times ? its apparently happening to me.

In versions before 7.4 I think it grabbed one extra row beyond what you
specify for the limit and then doesn't return that row, so if you say
limit 3 it gets 4 rows (and thus calls the function 4 times).  This
appears to be different in 7.4.




view thread (5+ messages)  latest in thread

Message-ID: <20030418234848.N10642-100000@megazone23.bigpanda.com>
Permalink:  ../20030418234848.N10642-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030418234848.N10642-100000@megazone23.bigpanda.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-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, mallah@trade-india.com
  Subject: Re: apparent problem with a PL
  In-Reply-To: <20030418234848.N10642-100000@megazone23.bigpanda.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