Re: Slow query when the select list is big

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Sterpu Victor <victor(at)caido(dot)ro>
Cc: Rob Imig <rimig88(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow query when the select list is big
Date: 2016-05-09 06:46:04
Message-ID: CAKFQuwYOCLqojT9Grv=prbN7_N0eQcgmtOrZs9X6DFa0BCDA=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday, May 8, 2016, Sterpu Victor <victor(at)caido(dot)ro> wrote:

> Yes but it is very big.
> I don't understand why the select list is influencing the CPU usage.
> I was expecting that only the join and where clauses would influence CPU.
>
>
PostgreSQL is smart enough to optimize away stuff that it knows doesn't
impact the final query result.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Rowley 2016-05-09 07:04:54 Re: Slow query when the select list is big
Previous Message John R Pierce 2016-05-09 06:40:37 Re: Slow query when the select list is big