Re: select (fn()).* executes function multiple times

From: Andrey <parihaaraka(at)gmail(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: select (fn()).* executes function multiple times
Date: 2018-11-16 15:08:03
Message-ID: CAOYf6eey0Ged+oLhL6W=r+fGT9Z1OiEpcFR0_EXKUKrR3fbaAA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

O_o
I got it. Sorry for disturbing you.
Thanks

regards, Andrey L

пт, 16 нояб. 2018 г. в 17:57, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

> That's not a bug, that's just how it works.
>
> You can get the other way with something like
>
> SELECT f.* FROM ..., LATERAL fn(...) f;
>
> regards, tom lane
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-11-16 16:18:41 Re: BUG #15160: planner overestimates number of rows in join when there are more than 200 rows coming from CTE
Previous Message Tom Lane 2018-11-16 14:57:51 Re: select (fn()).* executes function multiple times