pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
use of a composite type in CREATE TABLE?
3+ messages / 3 participants
[nested] [flat]

* use of a composite type in CREATE TABLE?
@ 2004-06-17 11:01  Hannes Korte <email@hkorte.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Hannes Korte @ 2004-06-17 11:01 UTC (permalink / raw)
  To: pgsql-sql

Hi,

does anyone know how it is posible to set a composite type as the data 
type of a column when creating a new table?

CREATE TABLE tbl1 (
name VARCHAR(60) NOT NULL,
address comp_type_address
);

The exmaple above does not work.
Any help is appreciated.

-- 
Regards,
Hannes



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: use of a composite type in CREATE TABLE?
@ 2004-06-17 13:37  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Hannes Korte <email@hkorte.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2004-06-17 13:37 UTC (permalink / raw)
  To: Hannes Korte <email@hkorte.com>; +Cc: pgsql-sql

Hannes Korte <email@hkorte.com> writes:
> does anyone know how it is posible to set a composite type as the data 
> type of a column when creating a new table?

Use 7.5 ;-).  It's not supported in any existing release, but it does
work in CVS tip ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: use of a composite type in CREATE TABLE?
@ 2004-06-21 04:48  Josh Berkus <josh@agliodbs.com>
  parent: Hannes Korte <email@hkorte.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Josh Berkus @ 2004-06-21 04:48 UTC (permalink / raw)
  To: Hannes Korte <email@hkorte.com>; pgsql-sql

Hannes,

> does anyone know how it is posible to set a composite type as the data
> type of a column when creating a new table?

This is not yet supported.   Hopefully it will be supported in the upcoming 
version 7.5.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-06-21 04:48 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-06-17 11:01 use of a composite type in CREATE TABLE? Hannes Korte <email@hkorte.com>
2004-06-17 13:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-06-21 04:48 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox