Re: SELECT col INTO TEMP TABLE tab2 ON COMMIT DROP FROM tab1

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: SELECT col INTO TEMP TABLE tab2 ON COMMIT DROP FROM tab1
Date: 2016-08-12 08:47:52
Message-ID: CA+bJJbxexatxrEaALKV0Dd5vqUC-VuWvQ7FgP0hG1-1y+j6UTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Aug 12, 2016 at 10:41 AM, Alexander Farber
<alexander(dot)farber(at)gmail(dot)com> wrote:
> why does this syntax fail in 9.5.3 please?

Maybe because.......

> $func$ LANGUAGE plpgsql;

... you are writing pspgsql.....

> The doc https://www.postgresql.org/docs/9.5/static/sql-selectinto.html just

But are looking at the docs for SQL. This kind of languages are
similar to SQL, but not the same. I think

https://www.postgresql.org/docs/9.5/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW

is the proper place to look it up.

Francisco Olarte.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2016-08-12 08:58:05 Re: Postgres Pain Points 2 ruby / node language drivers
Previous Message Alexander Farber 2016-08-12 08:41:34 SELECT col INTO TEMP TABLE tab2 ON COMMIT DROP FROM tab1