X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2A67DD1E941 for ; Sun, 29 Feb 2004 20:22:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 78617-02 for ; Sun, 29 Feb 2004 16:22:12 -0400 (AST) Received: from guinness.cs.stevens-tech.edu (guinness.cs.stevens-tech.edu [155.246.89.8]) by svr1.postgresql.org (Postfix) with ESMTP id 1CE36D1E948 for ; Sun, 29 Feb 2004 16:22:05 -0400 (AST) Received: from dab.cs.stevens-tech.edu (dab.cs.stevens-tech.edu [155.246.89.71]) by guinness.cs.stevens-tech.edu (Postfix) with ESMTP id AC3D314166E for ; Sun, 29 Feb 2004 15:21:43 -0500 (EST) Received: by dab.cs.stevens-tech.edu (Postfix, from userid 4405) id 633371CD818; Sun, 29 Feb 2004 15:22:01 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by dab.cs.stevens-tech.edu (Postfix) with ESMTP id 419981BBC70 for ; Sun, 29 Feb 2004 15:22:01 -0500 (EST) Date: Sun, 29 Feb 2004 15:22:01 -0500 (EST) From: Yasir Malik To: PostgreSQL Subject: Trouble with composite types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/401 X-Sequence-Number: 17091 Hello, I don't know why this message is not going through! I have the following types: create type street_type as ( street_number smallint, street_name text, apt_number smallint ); create type address_type as ( street street_type, city text, state char(2), zip_code char(5) ); When I enter that into the command prompt, I the following message: ERROR: Attribute "street" has composite type street_type Why is it giving me error message for something I know is true? Also, how do I add a member function to a type? Thanks, Yasir