Re: inheritance, and plans - Mailing list pgsql-performance

From Grzegorz Jaśkiewicz
Subject Re: inheritance, and plans
Date
Msg-id 2f4958ff0902081137x5d61909cw862e3b06f3de422@mail.gmail.com
Whole thread Raw
In response to Re: inheritance, and plans  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On Sun, Feb 8, 2009 at 6:34 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> It's possible that there are specific cases where the UNION optimization
> checks could allow domains to be treated as their base types, but
> blindly smashing both sides of the check to base is going to break more
> cases than it fixes.

What my little patch was trying to proof, is whether, that part of
planner could construct the plan better, if it had a notion of base
type in domains.
Which I still believe it should do, based on my simple test.

Again, I am not saying, that postgresql should treat domains just as
an alias to base type, but I do believe that it should at least
construct plan better - based on the base type, not the domain's oid.

If you know what it might possibly break, can you give some examples please ?

--
GJ

pgsql-performance by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: inheritance, and plans
Next
From: Mario Splivalo
Date:
Subject: Re: Postgres not willing to use an index?