PL/pgsql UPDATE status

Started by Richard Embersonabout 24 years ago2 messagesgeneral
Jump to latest
#1Richard Emberson
emberson@phc.net

Using an UPDATE statement within a PL/pgsql function is there anyway to
tell
how many rows actually got changed?

Thanks.

Richard

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Richard Emberson (#1)
Re: PL/pgsql UPDATE status

Richard Emberson <emberson@phc.net> writes:

Using an UPDATE statement within a PL/pgsql function is there anyway to
tell
how many rows actually got changed?

See GET DIAGNOSTICS.

regards, tom lane