X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AC1043A43FA for ; Sat, 20 Nov 2004 16:35:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69495-06 for ; Sat, 20 Nov 2004 16:35:36 +0000 (GMT) Received: from royk.itea.ntnu.no (royk.itea.ntnu.no [129.241.190.230]) by svr1.postgresql.org (Postfix) with ESMTP id 5ED803A428F for ; Sat, 20 Nov 2004 16:35:35 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by royk.itea.ntnu.no (Postfix) with ESMTP id 8ABF667162 for ; Sat, 20 Nov 2004 17:35:33 +0100 (CET) Received: from jaguar.stud.ntnu.no (jaguar.stud.ntnu.no [129.241.56.181]) by royk.itea.ntnu.no (Postfix) with ESMTP for ; Sat, 20 Nov 2004 17:35:33 +0100 (CET) Received: by jaguar.stud.ntnu.no (Postfix, from userid 34521) id 60570EFDE9; Sat, 20 Nov 2004 17:35:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jaguar.stud.ntnu.no (Postfix) with ESMTP id 5C42AEFDE7 for ; Sat, 20 Nov 2004 17:35:33 +0100 (CET) Date: Sat, 20 Nov 2004 17:35:33 +0100 (CET) From: Reza Shanbehbazari Mirzaei To: pgsql-sql@postgresql.org Subject: User defined types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/254 X-Sequence-Number: 19572 Hello: I have a user define type called VALID_TIME. It is declared as follows: CREATE TYPE VALID_TIME AS (t_s TIMESTAMP, t_e TIMESTAMP); Once I have used this in a table declaration, is it possible to extract parts of it, for example to only read t_s or t_e? If so, how do I do this? Thank you. -Reza