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 0A7FFD1B1CD for ; Wed, 2 Jun 2004 12:44:02 -0300 (ADT) 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 86950-07 for ; Wed, 2 Jun 2004 15:44:01 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id D6CB8D1B18C for ; Wed, 2 Jun 2004 12:43:59 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i52FhxOc024965; Wed, 2 Jun 2004 11:43:59 -0400 (EDT) To: "Riccardo G. Facchini" Cc: pgsql-sql@postgresql.org Subject: Re: function with a composite type calling another function - Mission Impossible? In-reply-to: <20040602145254.44625.qmail@web13906.mail.yahoo.com> References: <20040602145254.44625.qmail@web13906.mail.yahoo.com> Comments: In-reply-to "Riccardo G. Facchini" message dated "Wed, 02 Jun 2004 07:52:54 -0700" Date: Wed, 02 Jun 2004 11:43:59 -0400 Message-ID: <24964.1086191039@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200406/15 X-Sequence-Number: 17960 "Riccardo G. Facchini" writes: > declare my_new_complex complex_number; > select * from complex_to_complex(my_new_complex) into my_result; > ERROR: column "my_new_complex" does not exist plpgsql doesn't presently cope with passing whole-row variables into SQL expressions, which is essentially what you've got here. There's some chance it will work in time for 7.5. regards, tom lane