Re: Is it possible to return custom type as proper ROW?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to return custom type as proper ROW?
Date: 2006-10-11 16:56:51
Message-ID: 26190.1160585811@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Kretschmer <akretschmer(at)spamfence(dot)net> writes:
> Joe Kramer <cckramer(at)gmail(dot)com> schrieb:
>> I want to get:
>> item_id | last_update
>> -------------------------------------
>> 32 | 1234-12-12 12:12:12

> Untested:
> SELECT item_id, last_update from public.new_item(3,2);

Or just
SELECT * FROM public.new_item(3,2);

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-10-11 17:12:36 Re: more anti-postgresql FUD
Previous Message Guy Rouillier 2006-10-11 16:47:55 Re: more anti-postgresql FUD