X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 12FCE9FA5CE for ; Tue, 13 Jun 2006 23:49:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 70976-07 for ; Tue, 13 Jun 2006 23:49:45 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by postgresql.org (Postfix) with ESMTP id DB13A9FA38F for ; Tue, 13 Jun 2006 23:49:45 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id b29so1946494pya for ; Tue, 13 Jun 2006 19:49:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lfPKPHYgDu5nSYndJD2iCDg/jMEVL1dvyxeErdnpsYLs5qCNpRt7Dc/7l5ignVBbvj20QBpAyqhqu+z0LnAnX7SzOZo1nq0cSuoe/ZV7kMUhnYrHhezu49uh7BCwsPn6MsSVB67I/S/LrTKH3AmSiQvXxgW9D5kqgfzUopJtLnE= Received: by 10.35.103.12 with SMTP id f12mr213292pym; Tue, 13 Jun 2006 19:49:44 -0700 (PDT) Received: by 10.35.48.20 with HTTP; Tue, 13 Jun 2006 19:49:44 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2006 21:49:44 -0500 From: "Jaime Casanova" To: "renneyt@yahoo.com" Subject: Re: PLPGSQL/EXCEPTION HANDLING Cc: postgres In-Reply-To: <448EC40A.5020102@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <448E453D.3080207@yahoo.com> <448EC40A.5020102@yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/118 X-Sequence-Number: 22080 On 6/13/06, renneyt@yahoo.com wrote: > Jaime Casanova wrote: > > On 6/12/06, renneyt@yahoo.com wrote: > >> In a function implemented in 7.4.8 I had the following error when I call > >> the function: > >> > >> ERROR: syntax error at or near "EXCEPTION" > >> > >> Offending line is: > >> EXCEPTION WHEN dup_val_on_index THEN NULL; > >> > >> When this line is removed, all is well. > >> > > > > that's because that construction was added in 8.0, you have to upgrade > > to use it > > > What part of the original construction is not supported? > Are any "exception when" statements supported? > all the BEGIN .. EXCEPTION block: [ <