Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id PAA08046 for postgres-dist; Fri, 25 Mar 1994 15:34:41 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199403252334.PAA08046@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from cs.mtu.edu (cs.mtu.edu [141.219.150.12]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id PAA08037 for <postgres@postgres.berkeley.edu>; Fri, 25 Mar 1994 15:34:37 -0800
Received: from grad1 (grad1.cs.mtu.edu) by cs.mtu.edu (4.1/SMI-4.1)
	id AA13094; Fri, 25 Mar 94 18:34:38 EST
From: aataneja@cs.mtu.edu (Anurag A. Taneja)
Message-Id: <9403252334.AA13094@cs.mtu.edu>
Subject: "define type ..", question about ..
To: postgres@postgres.Berkeley.EDU
Date: Fri, 25 Mar 1994 18:34:35 -0500 (EST)
Cc: aataneja@cs.mtu.edu (Anurag A. Taneja)
X-Mailer: ELM [version 2.4 PL22]
Content-Type: text
Content-Length: 885       
Resent-To: postgres-dist@postgres.Berkeley.EDU
Resent-Date: Fri, 25 Mar 94 15:34:41 -0800
Resent-XMts: smtp


Hi folks,

I am doing my thesis on nested databases ..

I was wondering if I can emulate nested databases on top of postgres..

To make the question simple .. Can I (or can i not), create
a new base data type say square, which consists of another defined
data type (say array of circle (from user manual)), and do something like:

typedef struct {
	circle c1[];
	double length;
	double width;
		}
==================
GO
* create test(sq=square) \g

* append test(sq="(2.0, 3.0, (1.0, 2.0, 4.0), (2.0, 2.2, 8.0))"::square) \g
                   |    |     |*circle params*| |*another circle*|
                   square params .............................

==================

If yes, how do I convert my circle.o (or circle.c) to be in the 
library of postgres (just like you POINT in utils/geo-decls.h) ..

thanks a zillion ...
hope u can help me on this ***pleeeasseee**!!!!
Bruce !
