| 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 11:15:41 |
| Message-ID: | CAFj8pRCXSg73_DXwSkLJQaVeqfw32wg8eufcGyNcZEbTO7+Tvg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
po 22. 3. 2021 v 12:01 odesílatel Gary Stainburn <
gary(dot)stainburn(at)ringways(dot)co(dot)uk> napsal:
> On 22/03/2021 10:56, Pavel Stehule wrote:
>
> probably you can write
>
> D := do_breakdown(...);
>
> and it will be faster
>
> Pavel
>
>
> That also worked, which surprised me as I thought I'd already Tried that.
>
this way is significantly faster. Use SELECT only a) when you read from
tables, b) when you work with an set of rows (using unnest function)
Pavel
> Thanks.
>
> Gary
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sebastien FLAESCH | 2021-03-31 08:35:29 | Serial sequence name when table/column name in uppercase |
| Previous Message | Gary Stainburn | 2021-03-22 11:01:41 | Re: select into composite type / return |