Re: PostgreSQL 7.3: help on new CREATE TYPE

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: PostgreSQL 7.3: help on new CREATE TYPE
Дата
Msg-id GNELIHDDFBOCMGBFGEFOEEEFCEAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на PostgreSQL 7.3: help on new CREATE TYPE  ("Jerome Chochon" <jerome.chochon@ensma.fr>)
Список pgsql-hackers
Hi Jerome,

The RECORD type is used for writing stored procedures and functions that
return sets.

eg.  CREATE FUNCTION foo() RETURNS setof adress
AS '...';

Sort of thing...

Chris
-----Original Message-----
From: pgsql-hackers-owner@postgresql.org
[mailto:pgsql-hackers-owner@postgresql.org]On Behalf Of Jerome Chochon
Sent: Tuesday, 17 September 2002 5:17 PM
To: pgsql-hackers@postgresql.org; pgsql-announce@postgresql.org;
pgsql-general@postgresql.org
Subject: [HACKERS] PostgreSQL 7.3: help on new CREATE TYPE


Hi all.

I have read the last version of PostgreSQL (7.3 beta) and found that the
second version of CREATE TYPE is very interesting.

So we can create a type that look like a RECORD.
For example:
CREATE TYPE adress AS (number int, street text, country VARCHAR);

But can i use this type in a table definition like this:
CREATE TABLE person (his_name VARCHAR, his_adress adress);

Someone can answer to my question.

Thanks for your help.

Jérôme Chochon.


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

Предыдущее
От: "Jerome Chochon"
Дата:
Сообщение: PostgreSQL 7.3: help on new CREATE TYPE
Следующее
От: "Michael Paesold"
Дата:
Сообщение: Backend crash