Return-Path: aoki
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA13696; Tue, 29 Jun 93 23:49:07 -0700
Message-Id: <9306300649.AA13696@postgres.Berkeley.EDU>
From: aoki@postgres.berkeley.edu (Paul M. Aoki)
Subject: Re: text now OK, how about text[]
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
In-Reply-To: Your message of Tue, 29 Jun 93 15:27:32 -0700 
	     <9306292229.AA25392@aic.hrl.hac.com> 
Date: Tue, 29 Jun 93 23:52:32 -0700
Sender: aoki@postgres.Berkeley.EDU
X-Mts: smtp

lindaq@aic.hrl.hac.com writes:
> Or for that matter, how do I pull in arrays of anything?

arrays in released versions of postgres are implemented using
struct varlena in the simplest way you can possibly imagine.
look in utils/adt/arrayfuncs.c to see how it's done.  arrays
of variable-length types must be walked by hand.

4.2 will have a much better interface that will be Very
Different, so modularize your array access code.  (no, i'm not 
going to try to describe it in advance.  it's a moving target
at this point.)
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki
