Re: Slow performance with trivial self-joins - Mailing list pgsql-performance

From Adam Brusselback
Subject Re: Slow performance with trivial self-joins
Date
Msg-id CAMjNa7cmCQb_rPhUU4E4JtCard51F_TuH1ZFp=xJJHyeku2wGQ@mail.gmail.com
Whole thread Raw
In response to Re: Slow performance with trivial self-joins  (Benny Kramek <benny@medflyt.com>)
Responses Re: Slow performance with trivial self-joins  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-performance
> You can create a library of
> reusable views that are small, easy-to-understand and readable. Then
> you build them up into bigger views, and finally query from them. But
> then you end up with lots of (hidden) self-joins.  

I will concur with this use case being pretty common, but also something I 
have actively avoided anywhere performance is important because of the
lack of this optimization.

Even still, I have 20+ views like that in my database.

pgsql-performance by date:

Previous
From: Benny Kramek
Date:
Subject: Re: Slow performance with trivial self-joins
Next
From: David Rowley
Date:
Subject: Re: Slow performance with trivial self-joins