Re: Postgres Global Variables

From: Jan Wieck <janwieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: shm(at)daimlerchrysler(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Global Variables
Date: 2000-10-23 10:19:22
Message-ID: 200010231019.FAA00948@jupiter.jw.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> shm(at)daimlerchrysler(dot)com writes:
> > make use of a Sybase global variable called @@rowcount. @@rowcount
> > represents the number of rows affected by the most recent data modification
> > operation (inserts, deletes and/or updates).
>
> > Is there an equivalent in Postgres? Thanks much for the help.
>
> I think the libpq function PQcmdTuples() does what you want, although
> it's possible Sybase's behavior differs in some details.

In the 7.1 tree are changes from Philip Warner, gaining
access to this info from PL/pgSQL (new GET DIAGNOSTICS
command). I think this is closer to what he's looking for.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message postgres 2000-10-23 10:45:09 initdb trouble...
Previous Message Alexandru COSTIN 2000-10-23 09:56:02 What release date for PostgreSQL 7.1?