Re: dblink / plpgsql - definition list cheats for record

From: Richard Huxton <dev(at)archonet(dot)com>
To: Matthew Peter <survivedsushi(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dblink / plpgsql - definition list cheats for record
Date: 2006-11-09 09:26:33
Message-ID: 4552F449.8020203@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthew Peter wrote:
> Is there any way to use CREATE TYPE or an VIEW/TABLE defintion list instead of
> manually defining it?

Yes, just define your function as returning that type rather than
RECORD. That way the calling context will know what to expect.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2006-11-09 09:51:42 Re: RULE - special variables?
Previous Message Richard Huxton 2006-11-09 09:25:33 Re: TRIGGERS - access sql query_string that called it?