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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrey <parihaaraka(at)gmail(dot)com>
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: select (fn()).* executes function multiple times
Date: 2018-11-16 14:57:51
Message-ID: 14745.1542380271@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrey 2018-11-16 15:08:03 Re: select (fn()).* executes function multiple times
Previous Message David G. Johnston 2018-11-16 14:57:22 Re: select (fn()).* executes function multiple times