X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 45AA614B286E for ; Mon, 9 Aug 2004 14:46:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05223-05 for ; Mon, 9 Aug 2004 17:46:55 +0000 (GMT) Received: from main.base.ro (main.base.ro [213.154.110.30]) by svr1.postgresql.org (Postfix) with ESMTP id C991E14B2866 for ; Mon, 9 Aug 2004 14:46:48 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by main.base.ro (Postfix) with ESMTP id 2C703119AE0; Mon, 9 Aug 2004 20:51:14 +0300 (EEST) Received: from main.base.ro ([127.0.0.1]) by localhost (saliut [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06285-37; Mon, 9 Aug 2004 20:51:13 +0300 (EEST) Received: from [192.168.3.104] (obsd.base.ro [192.168.3.1]) by main.base.ro (Postfix) with ESMTP id C81FC119ADA for ; Mon, 9 Aug 2004 20:51:13 +0300 (EEST) Message-ID: <4117B8D8.6050904@base.ro> Date: Mon, 09 Aug 2004 20:48:08 +0300 From: Vlad Dimitriu Organization: Base Consulting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040623 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Exception handling from trigger References: <4117AA90.9080704@base.ro> <16661.1092071643@sss.pgh.pa.us> In-Reply-To: <16661.1092071643@sss.pgh.pa.us> X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Postfix_Antivirus at base.ro X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/68 X-Sequence-Number: 18565 I would design those columns as text and enforce value length restrictions with triggers. It's a false problem: I define the data type for a field and want to check his value after the exception that I can't fit larger data into my field. Thank you, Rod, Tom ....