From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | mike(dot)lang1010(at)gmail(dot)com |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #13799: Unexpected multiple exection of user defined function with out parameters |
Date: | 2015-12-08 16:40:11 |
Message-ID: | CAKFQuwauVSA9qeSvtTYE3u_tUpysTzkSML2Z8CDndt2WGWzN9g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Fri, Dec 4, 2015 at 11:36 PM, <mike(dot)lang1010(at)gmail(dot)com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 13799
> Logged by: Michael Lang
> Email address: mike(dot)lang1010(at)gmail(dot)com
> PostgreSQL version: 9.4.5
> Operating system: Ubuntu 12.04
> Description:
>
> Hi - it's late and I missed an typo in the previous submission of this bug.
> Please discard bug #13798 in favor of this post.
> ---
>
Answers provided on original (#13798) bug report thread.
In short:
Use LATERAL
Use CTE (i.e., WITH) if unable or undesirable to use LATERAL
Using FROM works as long as you don't need to pass in parameters from
other relations. Typically this problem occurs when you do which is why
putting the function call into the SELECT list happens in the first place.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-12-08 18:16:38 | Re: BUG #13796: ALTER TYPE DROP COLUMN -- unexpected behavior ? |
Previous Message | Kevin Grittner | 2015-12-08 16:25:21 | Re: BUG #13803: too many clients exception |