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 26DC33A4DC1 for ; Wed, 1 Dec 2004 22:12:34 +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 84506-02 for ; Wed, 1 Dec 2004 22:12:23 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B048F3A5428 for ; Wed, 1 Dec 2004 22:12:23 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iB1MBWDJ019849; Wed, 1 Dec 2004 17:11:32 -0500 (EST) To: "Andrew Thorley" Cc: "Michael Fuhr" , pgsql-sql@postgresql.org Subject: Re: inserting values into types In-reply-to: <20041201215811.476CF23CE8@ws5-3.us4.outblaze.com> References: <20041201215811.476CF23CE8@ws5-3.us4.outblaze.com> Comments: In-reply-to "Andrew Thorley" message dated "Thu, 02 Dec 2004 05:58:11 +0800" Date: Wed, 01 Dec 2004 17:11:32 -0500 Message-ID: <19848.1101939092@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.104 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200412/8 X-Sequence-Number: 19628 "Andrew Thorley" writes: > CREATE TYPE qwerty_UDT AS (abc INT); > CREATE TABLE t (col1 qwerty_UDT); > INSERT INTO t (col1) VALUES (qwerty_UDT(123)); > ERROR: function qwerty_udt(integer) does not exist Just say INSERT INTO t (col1) VALUES (ROW(123)); Note this will not work at all on pre-8.0 Postgres. regards, tom lane