Re: Parameterized views proposition

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Parameterized views proposition
Date: 2005-03-15 14:53:01
Message-ID: 6073.1110898381@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Tambet Matiisen" <t(dot)matiisen(at)aprote(dot)ee> writes:
> How tough it would be to implement

> CREATE VIEW xxx PARAMETERS (yyy) AS zzz;

> as

> CREATE TYPE xxx;
> CREATE FUNCTION xxx(yyy) RETURNING SETOF xxx LANGUAGE sql AS 'zzz';

What's the point? It'd be nonstandard anyway, so just use the function.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Graham Vickrage 2005-03-15 18:44:10 Scheme not dropping
Previous Message PFC 2005-03-15 14:20:14 Re: select multiple immediate values, but in multiple rows