How to make user-defined data types?

Поиск
Список
Период
Сортировка
От
Тема How to make user-defined data types?
Дата
Msg-id 20001216080202.8495.qmail@mailhost.sidereal.kz
обсуждение исходный текст
Список pgsql-general
I know it is possible to define a new data type which is a composite
of PG native types, but there seems to be little or no documentation
(that I can find) about how to do this.  For example, I have a lot of
data in the form of an address, which contains address-line-1,
address-line-2, city, province, country, and postal code.  I want to
put all of these data into a single type, so I can pass it back and
forth to pl/pgsql functions as just one argument.  I'm having to send
so many arguments that I am running into the 16 argument limit, and
anyway, it would be much easier to handle if I could just define an
address type.

Any information would be appreciated, including references to
websites.

Thanks

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

Предыдущее
От: "Guang Mei"
Дата:
Сообщение: Does postgresql support storage clause when creating tables
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: Great Bridge PostgreSQL products and services