pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bricklen Anderson <banderson@presinet.com>
To: Aaron Bono <postgresql@aranya.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: hi let me know the solution to this question
Date: Tue, 18 Jul 2006 09:44:50 -0700
Message-ID: <44BD1002.6070505@presinet.com> (raw)
In-Reply-To: <bf05e51c0607180854m48d83301ldc74d4d838c1a42f@mail.gmail.com>
References: <A70AE049E81A6A40879D5DC0AC8C38C906B08220@venus.infics.com>
	<20060718053442.GA9694@winnie.fuhr.org>
	<bf05e51c0607180854m48d83301ldc74d4d838c1a42f@mail.gmail.com>

Aaron Bono wrote:
> On 7/18/06, *Michael Fuhr* <mike@fuhr.org <mailto:mike@fuhr.org>> wrote:
<snip>
>     http://www.postgresql.org/docs/8.1/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTIC...
<snip>
>  
> OK, this question got me wondering: is there a way to determine, in a 
> function/stored procedure, the number of rows that were 
> inserted/updated/deleted?
<snip>
> I could not find any documentation about getting the count of updates 
> but when you run the update by itself, PostgreSQL reports the number of 
> records updated so I have to believe the information is available 
> somewhere.
> 
> Thanks,
> Aaron
> 
Look for the section entitled "36.6.6. Obtaining the Result Status" on 
the link that Michael Fuhr supplied (above). Is that what you are 
looking for?



view thread (5+ messages)  latest in thread

Message-ID: <44BD1002.6070505@presinet.com>
Permalink:  ../44BD1002.6070505@presinet.com/
Also on:    postgresql.org/message-id/44BD1002.6070505@presinet.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: banderson@presinet.com, postgresql@aranya.com
  Subject: Re: hi let me know the solution to this question
  In-Reply-To: <44BD1002.6070505@presinet.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