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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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