X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2ABB5D1B43A for ; Tue, 25 Nov 2003 17:27:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 04358-08 for ; Tue, 25 Nov 2003 13:27:06 -0400 (AST) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id E0C9DD1B442 for ; Tue, 25 Nov 2003 13:27:06 -0400 (AST) Received: (qmail 25729 invoked by uid 500); 25 Nov 2003 17:26:06 -0000 Date: Tue, 25 Nov 2003 11:26:06 -0600 From: Bruno Wolff III To: Iain Cc: pgsql-admin@postgresql.org Subject: Re: A quick question about domains Message-ID: <20031125172606.GB25043@wolff.to> Mail-Followup-To: Iain , pgsql-admin@postgresql.org References: <000901c3b315$47f41710$7201a8c0@mst1x5r347kymb> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000901c3b315$47f41710$7201a8c0@mst1x5r347kymb> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/432 X-Sequence-Number: 11419 On Tue, Nov 25, 2003 at 14:30:47 +0900, Iain wrote: > > I want to use domains in the project I'm working on right now. I'd like to > hear from anyone with experience of using them. Basically I'd like to know > if you think it's a good idea, and whether there are any pitfalls that I > should be aware of. I did a quick search on the lists and just came up with > a few old bugs, apparently fixed. It's a fairly big job to get the domains > in place, so I'd hate to regret it afterwards. It is going to be hard to answer this without knowing more about how you are planning on using them. You probably do want to be running 7.4 to use them. In 7.3 there weren't domain specific check constraints other than NULL and NOT NULL.