create temp view from function inside plpgsql function.

From: Tjibbe <tjibbe(at)rijpma(dot)org>
To: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: create temp view from function inside plpgsql function.
Date: 2014-04-04 09:43:01
Message-ID: CAF_dx104E=K9HMNP_ZqZW-g2Y5z7E2Jdnj3Gup8OkWLM2JBdPQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a plpgsql function with:

PERFORM * FROM answers(_h); --works fine.
CREATE TEMP VIEW answers AS SELECT * FROM answers(_h); --gives error...

Why I get this error:
ERROR: column \"_h\" does not exist\nLINE 1: ...TEMP VIEW answers AS SELECT
* FROM antwoorden_view(_h)

--
+31 6 29401726
tjibbe(at)rijpma(dot)org
Jacobusstraat 185
3012 JM Rotterdam

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2014-04-04 10:23:12 Re: create temp view from function inside plpgsql function.
Previous Message Raphael Bauduin 2014-04-04 08:25:37 json_populate_recordset and nested object, how to solve?