| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk> |
| Cc: | pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: select into composite type / return |
| Date: | 2021-03-22 10:56:30 |
| Message-ID: | CAFj8pRBGWLkD=Q6fdp-Sq_2L8f+1etJuA-PfZf=-67hWrJnC2w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
po 22. 3. 2021 v 11:54 odesílatel Gary Stainburn <
gary(dot)stainburn(at)ringways(dot)co(dot)uk> napsal:
> On 22/03/2021 10:40, Pavel Stehule wrote:
>
> select into D do_breakdown(v.v1,v.v2,v.v3,v.v4,v.v5,v.v6,v.v7);
>
> this line is wrong
>
> you should to use select * from do_breakdown(..) into D
>
> note - plpgsql is case insensitive language - all identifiers are
> transformed to lower case form - so using identifiers like D is not a good
> idea.
>
> Regards
>
> Pavel
>
> Hi Pavel,
>
> Thank you for this. As soon as I read your answer, it was obvious. It
> matches the same issue I had last week.
>
probably you can write
D := do_breakdown(...);
and it will be faster
Pavel
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gary Stainburn | 2021-03-22 11:01:41 | Re: select into composite type / return |
| Previous Message | Gary Stainburn | 2021-03-22 10:54:21 | Re: select into composite type / return |