Re: Function .. AS..?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: "Ing(dot) Jhon Carrillo" <jdigital(at)cantv(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: Function .. AS..?
Date: 2005-02-10 06:06:07
Message-ID: 20050209220435.D62999@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

On Wed, 9 Feb 2005, Ing. Jhon Carrillo wrote:

> Those instructions are good but i want to call this function only for "
> select consulta_contacto(1)" nothing more, Is really necesary to use
> "AS ..."?

If it absolutely needs to be setof record, yes.

It may be more appropriate to make a composite type with CREATE TYPE AS
and then make the function return SETOF <newtypename> instead.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Fuhr 2005-02-10 06:16:19 Re: [SQL] Function .. AS..?
Previous Message Hicham G. Elmongui 2005-02-10 03:25:20 enforcing a plan

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-02-10 06:16:19 Re: [SQL] Function .. AS..?
Previous Message Ing. Jhon Carrillo 2005-02-09 20:57:14 Function .. AS..?