Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 26DBE9FB36C for ; Sun, 27 May 2007 12:59:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 07502-05 for ; Sun, 27 May 2007 12:59:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 3D1549FB3C4 for ; Sun, 27 May 2007 12:59:44 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 3D93256455; Sun, 27 May 2007 10:59:44 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Sun, 27 May 2007 10:59:42 -0500 Date: Sun, 27 May 2007 10:59:42 -0500 From: "Jim C. Nasby" To: Chander Ganesan Cc: pgsql-performance@postgresql.org Subject: Re: Domains versus Check Constraints Message-ID: <20070527155942.GN92628@nasby.net> References: <465320B5.7050305@otg-nc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YrQNB5Deg1WGKZi3" Content-Disposition: inline In-Reply-To: <465320B5.7050305@otg-nc.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070527:chander@otg-nc.com::Ba6HPoWsFSaxAIUz:0000000000000000000 0000000000000000000000005aQs X-Hashcash: 1:20:070527:pgsql-performance@postgresql.org::rMgwKmdkuznC44is:00000 0000000000000000000000003PYZ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/560 X-Sequence-Number: 24950 --YrQNB5Deg1WGKZi3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 22, 2007 at 12:56:21PM -0400, Chander Ganesan wrote: > Are there any performance improvements that come from using a domain=20 > over a check constraint (aside from the ease of management component)? No. Plus support for domain constraints isn't universal (plpgsql doesn't honor them, for example). --=20 Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) --YrQNB5Deg1WGKZi3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGWartdO30qud8SkgRAv6JAJ9s8+U7oL5KGnEaQrMQvsNwfTN8NQCgjS7e +LLqxuI3F4nMPYK2Zldqjwk= =s9oy -----END PGP SIGNATURE----- --YrQNB5Deg1WGKZi3--