System Messages - Mailing list pgsql-sql

From Samuel J. Sutjiono
Subject System Messages
Date
Msg-id 00f701c1bfa4$f19b67c0$110a010a@headquarters.wcgroup.com
Whole thread Raw
List pgsql-sql
I have a function (stored procedures) that updates or inserts a customer record (see below).
 
IF found then
   Update Customer 
   Set custname = icustname
   retmsg := ''record already exists - updated'';
ELSE   
   Insert into Customer (custname) VALUES (icustname);
   retmsg := ''successful'';
END IF;
 
Can anybody tell me how I can be sure that the record is updated or inserted into the database ? Is there any system message in PostgreSQL that I can query ?
 
Thanks for your help. 

pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: implementation of a many-to-many relationship
Next
From: Barry Lind
Date:
Subject: Re: Timestamp output