COMMAND_OK for PL/pgSQL?

From: Ben <bench(at)silentmedia(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: COMMAND_OK for PL/pgSQL?
Date: 2002-10-26 16:07:08
Message-ID: Pine.LNX.4.44.0210260904020.16949-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm just getting into writting stored procs with PL/pgSQL, and I'm having
a hard time finding a way to check the status of my commands. For
instance, I see that after an insert, I can get the RESULT_OID - but I'm
not sure this is a good way to check if the insert happened correctly and
didn't violate any constraints. If it is, how do I check that the oid
returned is valid?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben 2002-10-26 16:11:44 user-friendly search strings
Previous Message Hervé Piedvache 2002-10-26 14:53:42 Re: question about seq scan and index scan