Skip site navigation (1) Skip section navigation (2)

Re: Questions about writing functions...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bob Whitehouse" <bwhitehouse(at)geeknest(dot)com>
Cc: "pgsql-novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Questions about writing functions...
Date: 2001-04-19 22:10:47
Message-ID: 22896.987718247@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Bob Whitehouse" <bwhitehouse(at)geeknest(dot)com> writes:
> If I write a function that deletes a record from a table, how do I access
> the output from the delete operation to see if it completed successfully?

In 7.1 you could look at the ROW_COUNT statistic field to see how many
rows were deleted.  I don't think pre-7.1 plpgsql has a way to do that.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Carsten HuettlDate: 2001-04-20 06:09:17
Subject: postgres installation on FBSD fails
Previous:From: Bob WhitehouseDate: 2001-04-19 21:30:57
Subject: Questions about functions...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group