Re: Avoiding duplication of code via views -- slower? How do people typically do this?

From: Jack Christensen <jack(at)jackchristensen(dot)com>
To: Joe Van Dyk <joe(at)tanga(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Avoiding duplication of code via views -- slower? How do people typically do this?
Date: 2013-02-15 15:08:12
Message-ID: 511E4F5C.3020506@jackchristensen.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joe Van Dyk wrote:
>
> Perhaps I fat-fingered something somewhere... I tried that and I got
> this:
> https://gist.github.com/joevandyk/4958906/raw/5561f95ef2b5d82f81ab14913c4d36f6aac3ee0a/gistfile1.txt
>
> The with_filters view uses a different plan.
Interesting. It is avoiding the hash join, but it is still evaluating
the exists column even when it is not referenced at all in the select. I
would have expected the optimizer to remove it entirely.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-02-15 15:31:13 Re: Reset permissions on table
Previous Message Amit Kapila 2013-02-15 14:42:35 Re: bug, bad memory, or bad disk?