Re: a JOIN to a VIEW seems slow

From: "Frank Millman" <frank(at)chagford(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: a JOIN to a VIEW seems slow
Date: 2017-09-19 05:06:42
Message-ID: FA8FE4E7E22B4A17813D05CECE30B0C5@FrankLaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Merlin Moncure wrote:
On Thu, Sep 14, 2017 at 8:17 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
> >
> > The PostgreSQL cannot to push join - in slow case, the UNIONS should be done
> > first - and it requires full scan ar_tran_inv - used filter (posted AND
> > (deleted_id = 0) is not too effective - maybe some composite or partial
> > index helps.
>
> In my testing JOINS can push through UNION ALL. Why do we need to
> materialize union first? What version is this?
>

I am using version 9.4.4 on Fedora 22.
Frank Millman

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Job 2017-09-19 08:08:30 Multicolumn Index on OR conditions
Previous Message Merlin Moncure 2017-09-18 22:44:56 Re: a JOIN to a VIEW seems slow