Re: On Scalability

From: Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: On Scalability
Date: 2010-10-07 15:03:40
Message-ID: AANLkTikVMZEppXib1Sv3ZH8QJo3LcG2axopBDM8RS705@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

2010/10/7 Stephen Frost <sfrost(at)snowman(dot)net>:
> * Vincenzo Romano (vincenzo(dot)romano(at)notorand(dot)it) wrote:
>> Which kind of information are you thinking about?
>> I think that the stuff you put into the CHECK condition for the table
>> will say it all.
>
> The problem is that CHECK conditions can contain just about anything,
> hence the planner needs to deal with that possibility.

Not really. For partitioning there would be some constraints as you
have in the DEFAULT values.

>> Infact there you have not just the column names with relevant values, but the
>> actual expression(s) to be checked,
>
> Yes, that would be the problem.  Proving something based on expressions
> is alot more time consuming and complicated than being explicitly told
> what goes where.

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.

>        Stephen
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkyt3qMACgkQrzgMPqB3kiih3wCcCwLlvpDCjgG5LSgim/XGieEE
> MsEAn0mHfAizDOpvepGXWTWlxHtJibA5
> =Szx4
> -----END PGP SIGNATURE-----
>

--
Vincenzo Romano at NotOrAnd Information Technologies
Software Hardware Networking Training Support Security
--
NON QVIETIS MARIBVS NAVTA PERITVS

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2010-10-07 15:07:18 Re: On Scalability
Previous Message Stephen Frost 2010-10-07 14:52:19 Re: On Scalability

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2010-10-07 15:07:18 Re: On Scalability
Previous Message Stephen Frost 2010-10-07 14:52:19 Re: On Scalability