Re: Execute command in PL/pgSQL function not executing

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Marc Millas <marc(dot)millas(at)mokadb(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Abdul Mohammed <imonikemohammed(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Execute command in PL/pgSQL function not executing
Date: 2021-11-20 02:24:46
Message-ID: CAHOFxGrMhctUD4ieePk=JX14J++8T9AOoEro5r6fD0NeY7VTRA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You could also just return the name of the temp table, or return nothing
and directly use that name manually outside the function to do select *
from pg_temp.my_data

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Дмитрий Иванов 2021-11-20 12:16:04 insert column monetary type
Previous Message Marc Millas 2021-11-20 02:13:41 Re: Execute command in PL/pgSQL function not executing