control reaches end of trigger procedure without RETURN - Mailing list pgsql-sql

From rramostalo@quorum.com
Subject control reaches end of trigger procedure without RETURN
Date
Msg-id 86256C0D.007A463B.00@amadeus.quorum.com
Whole thread Raw
Responses Re: control reaches end of trigger procedure without RETURN  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
List pgsql-sql

create function duplicate_images() returns OPAQUE as'    DECLARE         myrec RECORD;    BEGIN         if TG_OP =
''INSERT''then              select * into myrec from images where page=NEW.page and
 
path=NEW.path;              if found then                   raise exception ''insert failed: duplicate record found'';
           end if;         end if;    end;
 
' language 'plpgsql';




pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Limit A Table To 1 Row
Next
From: ta145@yahoo.com (Trey Ackerman)
Date:
Subject: looking to speed up SELECT ... LEFT JOIN query