[SQL] Impossible with pl/pgsql?

2005-05-30 Thread Markus Bertheau ☭
Hi, I have a function find() that returns a SETOF INT. I further have a function decorate as follows: CREATE TYPE decorate_type AS (id INT, name TEXT, author TEXT, last_change TIMESTAMP); CREATE FUNCTION decorate(INT) RETURNS decorate_type STABLE LANGUAGE 'plpgsql'

Re: [SQL] Impossible with pl/pgsql?

2005-05-30 Thread Michael Fuhr
On Mon, May 30, 2005 at 05:15:55PM +0200, Markus Bertheau ??? wrote: > > Now how would a query look like that involves find() and decorate() and > returns > > id | name | author | last_change > > 4 | egg | john | 2003-05-05 > 5 | ham | dave | 2004-03-01 E

Re: [SQL] Impossible with pl/pgsql?

2005-05-30 Thread Tom Lane
Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> writes: > I have a function find() that returns a SETOF INT. I further have a > function decorate as follows: > CREATE TYPE decorate_type AS (id INT, name TEXT, author TEXT, > last_change TIMESTAMP); > CREATE FUNCTION decorate(INT) >

Re: [SQL] Impossible with pl/pgsql?

2005-05-31 Thread Ramakrishnan Muralidharan
PM To: 'pgsql-sql@postgresql.org' Subject: [SQL] Impossible with pl/pgsql? Hi, I have a function find() that returns a SETOF INT. I further have a function decorate as follows: CREATE TYPE decorate_type AS (id INT, name TEXT, author TEXT, last_change TIMESTAMP); CREATE FUNCTION de