From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PL/PgSQL and pg_temp pseudo-schema |
Date: | 2015-02-20 08:34:32 |
Message-ID: | CAFj8pRD4bqbSBvx1=A_ozrFFv3PUkEuaN2r9BHeSg3TEshyydQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi
It is little bit strange, it works for me
postgres=# create temp table foo(a int);
CREATE TABLE
postgres=# do $$ begin insert into foo values(10); end $$; -- plpgsql
DO
postgres=# select * from foo;
a
----
10
(1 row)
Regards
Pavel
2015-02-20 9:07 GMT+01:00 Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>:
> PL/PgSQL doesn't know the pg_temp meta schema in case you need to
> really work on that TEMP TABLE.
> At the moment I had to move those DDL/DML queries within a "plain" SQL
> function.
>
> Is this a feature or a bug? (Seriously, I mean! :-)
>
> TIA.
>
> --
> Vincenzo Romano - NotOrAnd.IT
> Information Technologies
> --
> NON QVIETIS MARIBVS NAVTA PERITVS
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Guillaume Drolet | 2015-02-20 12:12:06 | Re: Cluster seems broken after pg_basebackup |
Previous Message | Vincenzo Romano | 2015-02-20 08:07:48 | PL/PgSQL and pg_temp pseudo-schema |