Re: Create type

From: Renaud Tthonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Create type
Date: 2001-02-27 10:23:34
Message-ID: 3A9B8026.AC8FCBCD@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton wrote:

> > Ok. First I wanted to use nested tables. But I think it is not possible.
> > Then I decided to create
> > a type that will made the same function, a type that will be like a C
> > structure. This type would contain
> > an integer and a string like (1,'aaa'). Then I would have made a list or
> an
> > array with this type.
> > Am I clear? Sorry if not, my English is poor.
> >
> > Thank you for your help.
> > Renaud THONNART
>
> Ah - you can define your own types using C and then should be able to have
> an array of them. Never done this myself, but the relevant information is in
> the Programmer's Guide - 13. Extending SQL: Types
>
> You will probably end up building supporting functions and operators for the
> type too.
>
> - Richard Huxton

Ok, thank you for your help Richard !
Renaud THONNART

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Renaud Tthonnart 2001-02-27 10:34:48 Using libpq++
Previous Message Renaud Tthonnart 2001-02-27 10:20:04 Re: Create type