Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA02137; Fri, 2 Jul 93 11:25:26 -0700
Date: Fri, 2 Jul 93 11:25:26 -0700
From: lindaq@aic.hrl.hac.com
Subject: casting for array types from GetAttributeByName?
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres@postgres.berkeley.edu
Message-Id: <9307021827.AA00673@aic.hrl.hac.com>
X-Envelope-To: postgres@postgres.berkeley.edu

Hi -- I'm trying to pull a postgres data structure of type "text[]"
into a C routine using GetAttributeByName().  If I were
just pulling in something of postgres type "text" I would cast the
result into (text *) GetAttributeByName(...).  But what should
I cast into when pulling in an array?

Is GetAttributeByName the right function to be using?  I need something
to copy the data into the C function's namespace, and this is the
function used for all supported types in postgres.  But the documentation
does not mention how to use GetAttributeByName for arrays.

Any help will be greatly appreciated.

Lin Chase
CMU
