Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 81F7A1337BB7 for ; Thu, 7 Oct 2010 12:15:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69512-05 for ; Thu, 7 Oct 2010 15:15:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 9D09C1337B5D for ; Thu, 7 Oct 2010 12:15:44 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2C37422294; Thu, 7 Oct 2010 11:15:44 -0400 (EDT) Date: Thu, 7 Oct 2010 11:15:44 -0400 From: Stephen Frost To: Vincenzo Romano Cc: Robert Haas , Heikki Linnakangas , Simon Riggs , pgsql-hackers@postgresql.org Subject: Re: On Scalability Message-ID: <20101007151544.GW26232@tamriel.snowman.net> References: <4CAD769D.9090301@enterprisedb.com> <1286437290.2304.192.camel@ebony> <4CAD7BED.4050009@enterprisedb.com> <20101007142927.GT26232@tamriel.snowman.net> <20101007145219.GU26232@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1daNhnUvRjAp86QK" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.26-1-amd64 (x86_64) X-Uptime: 11:13:11 up 406 days, 2:38, 14 users, load average: 0.04, 0.08, 0.09 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/469 X-Sequence-Number: 171509 --1daNhnUvRjAp86QK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Vincenzo Romano (vincenzo.romano@notorand.it) wrote: > 2010/10/7 Stephen Frost : > > * Vincenzo Romano (vincenzo.romano@notorand.it) wrote: > > The problem is that CHECK conditions can contain just about anything, > > hence the planner needs to deal with that possibility. >=20 > Not really. For partitioning there would be some constraints as you > have in the DEFAULT values. How do we know when it's partitioning and not a CHECK constraint being used for something else..? I'll tell you- through the user using specific partitioning DDL statements. > Consuming computing resources at DDL-time should be OK if that will > lead to big savings at DML-time (run-time), my opinion. It'd be just like > compile time optimizations. CHECK constraints, inheiritance, etc, are general things which can be used for more than just partitioning. Abusing them to go through tons of extra gyrations to make the specific partitioning case faster at DML time (if that's really even possible... I'm not convinced you could make it bullet-proof) isn't a good approach. Thanks, Stephen --1daNhnUvRjAp86QK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkyt5CAACgkQrzgMPqB3kijAUACfd9QcB00Nic6mSwWmwoXABc4p kBoAnAijF39ZTFOGjpk1CN/8/I3Tj9HI =C8G/ -----END PGP SIGNATURE----- --1daNhnUvRjAp86QK--