Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 4D1A39FBBF5 for ; Fri, 6 Apr 2007 14:26:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 39444-02 for ; Fri, 6 Apr 2007 14:26:32 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by postgresql.org (Postfix) with ESMTP id EEE899FBAAA for ; Fri, 6 Apr 2007 14:26:33 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c24so1090570ana for ; Fri, 06 Apr 2007 10:26:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=PQ8TNUBEzst5+cmmoTVw8z3x5A6H1gBYrvx68mhWQmkaToOIlSX7eyk1yi/RuYABE8+VDauHuvi5T8tdqKJ2HgHNA8gllRVk+WhK3TT+tw7Zd+5rCeidfbEXtH2YsMoN358QKYzFrD/H99+Q4lOXgcElN7jBT7sYWhRRhLEaLzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fPbXSIA7AM6Jx/MUw8qEr9MAtFZ0Aj4JEHez8ZzgBxH90nZGAhFlio00vQd3AIAV3IP0lrKYmFOQnwPz72HPVxqv0mC6VR22t/QOkH4yEl5c22j1F/B8imFhlR7RdvUo95IdSRXhATkP0NwLh0fd1DHbPYy1hf8p5gmrOyIoES4= Received: by 10.100.191.5 with SMTP id o5mr2266324anf.1175880393277; Fri, 06 Apr 2007 10:26:33 -0700 (PDT) Received: by 10.100.165.19 with HTTP; Fri, 6 Apr 2007 10:26:33 -0700 (PDT) Message-ID: <1d219a6f0704061026v4ee14b85n622cd27a0b53646d@mail.gmail.com> Date: Fri, 6 Apr 2007 13:26:33 -0400 From: "Chris Hoover" To: "pgsql-admin@postgresql.org" Subject: Setting sqlstate in plpgsql function MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6586_12072528.1175880393245" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/59 X-Sequence-Number: 25123 ------=_Part_6586_12072528.1175880393245 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Is where anyway to set the sqlstate to a custom value when inside a plpgsql function? I am still working on converting from Sybase ASA to Postgres and some of the triggers and stored procedures in Sybase are setting the variable to specific custom values. Thanks, Chris ------=_Part_6586_12072528.1175880393245 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is where anyway to set the sqlstate to a custom value when inside a plpgsql function?  I am still working on converting from Sybase ASA to Postgres and some of the triggers and stored procedures in Sybase are setting the variable to specific custom values.

Thanks,

Chris
------=_Part_6586_12072528.1175880393245--