Re: [Pgsql-ayuda] Usando CREATE TYPE AS

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Edwin Quijada <listas_quijada(at)hotmail(dot)com>
Cc: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: Re: [Pgsql-ayuda] Usando CREATE TYPE AS
Date: 2004-01-13 23:22:26
Message-ID: 20040113232226.GC3207@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Tue, Jan 13, 2004 at 05:07:27PM +0000, Edwin Quijada wrote:

> Entonces, cual es la idea de poder declarar tipos?
> Puedo retornarlos?

Por supuesto ...

Lo de CREATE TYPE AS fue un agregado para las funciones que retornan
SETOF RECORD. Puedes usar los otros tipos en tablas (esos que se
especifican con funciones de entrada y salida -- CREATE TYPE tipo (...),
sin AS)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Doing what he did amounts to sticking his fingers under the hood of the
implementation; if he gets his fingers burnt, it's his problem." (Tom Lane)

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mauricio Ferrari 2004-01-14 00:13:56 RE: [Pgsql-ayuda] importar mdb a postgresql
Previous Message Denys Rodriguez 2004-01-13 20:35:22 [Pgsql-ayuda] datos binarios