Re: Tempory table is not getting created inside Function in postgres.

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: nikhil raj <nikhilraj474(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Tempory table is not getting created inside Function in postgres.
Date: 2023-02-27 19:47:56
Message-ID: 8abddd95-02e3-82f1-0003-ec8636d95630@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/27/23 11:10 AM, nikhil raj wrote:
> HI Team,
>
> This is the Function I have created successfully but while executing it
> throughs an error temp table doesn't exist.
>
> But the same when I execute it not inside the function from **drop temp
> table to end insert select ** it work fine
>
> Please can any one help me why in the function i am not able to create
> the temp table. what is alternative

You are running this in pgAdmin4 Query Tool, correct?

Is Autocommit set?

Have you tried this in psql?

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-02-27 20:01:15 Re: Tempory table is not getting created inside Function in postgres.
Previous Message Adrian Klaver 2023-02-27 19:40:08 Re: pg_get_functiondef(), trailing spaces and + sign