Re: Definition of return types for own functions?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Definition of return types for own functions?
Дата
Msg-id 20060928103137.GD10591@svana.org
обсуждение исходный текст
Ответ на Re: Definition of return types for own functions?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Ответы Re: Definition of return types for own functions?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
On Thu, Sep 28, 2006 at 10:15:19AM +0200, A. Kretschmer wrote:
> am  Thu, dem 28.09.2006, um  9:46:29 +0200 mailte Matthias.Pitzl@izb.de folgendes:
> > Hello all!
> >
> > Is it possible to define a complex return type like a record in a function
> > without having some table around with the needed structure of the return
> > values?
>
> Yes, you can define a new type:
>
> CREATE TYPE name AS
>     ( attribute_name data_type [, ... ] )

Also, in more recent versions (8.1 I think) you can use OUT parameters
to create anonymous types.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: text to point conversion not working. ( cannot cast type text to point )
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Definition of return types for own functions?