Re: Get the number of records of a result set

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Eugenio Tacchini" <eugenio(dot)tacchini(at)elfo(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Get the number of records of a result set
Date: 2008-01-30 08:33:42
Message-ID: 162867790801300033p37dcb7d2j4aeb6e830c900685@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

http://www.postgresql.org/docs/8.2/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

regards
Pavel Stehule

On 30/01/2008, Eugenio Tacchini <eugenio(dot)tacchini(at)elfo(dot)net> wrote:
> Hello,
> I'm writing a function in PL/pgSQL and I would like to know if there
> is a method to get the number of records in a result set, after a
> select query, without executing the same query using COUNT(*).
>
> Thanks.
>
> Regards,
>
> Eugenio.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ow Mun Heng 2008-01-30 08:35:17 Re: Get the number of records of a result set
Previous Message Eugenio Tacchini 2008-01-30 08:14:05 Get the number of records of a result set