Return-Path: aoki
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA19299; Fri, 20 Aug 93 19:49:55 -0700
Message-Id: <9308210249.AA19299@postgres.Berkeley.EDU>
From: aoki@postgres.berkeley.edu (Paul M. Aoki)
Subject: Re: arrays
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
In-Reply-To: Your message of Thu, 19 Aug 1993 10:49:18 -0500 (EDT) 
	     <9308191450.AA08443@postgres.Berkeley.EDU> 
Date: Fri, 20 Aug 93 19:57:17 -0700
Sender: aoki@postgres.Berkeley.EDU
X-Mts: smtp

dfleenor@nettech.com (super dave?) writes:
> I need to create an array of structures, but the doc I have doesn't have a lot
> of clear-cut examples. Basically, I need something like:
> structure: (x = int4, y = text, etc)

define an adt (base type) containing the fields you want.
then define an array of them.  unfortunately you will have
to write routines to extract the structure fields.  the 
reason for this is that the answer to this question...

> Also, is it possible to create an array of classes?

...is no.  arrays can only be on adts (base types).
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki
