Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A67A46351A0 for ; Thu, 11 Jun 2009 18:49:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85249-05 for ; Thu, 11 Jun 2009 18:49:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7CAC4634953 for ; Thu, 11 Jun 2009 18:49:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n5BLnkQv020493; Thu, 11 Jun 2009 17:49:46 -0400 (EDT) To: Richard Rosenberg cc: pgsql-sql@postgresql.org Subject: Re: polymorphic function in 7.4 vs. 8.3 In-reply-to: <200906111442.17861.richrosenberg@earthlink.net> References: <200906111442.17861.richrosenberg@earthlink.net> Comments: In-reply-to Richard Rosenberg message dated "Thu, 11 Jun 2009 14:42:17 -0700" Date: Thu, 11 Jun 2009 17:49:46 -0400 Message-ID: <20491.1244756986@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/57 X-Sequence-Number: 32662 Richard Rosenberg writes: > Tom, thanks for your prompt reply. I think I may have my head on straight now, > this should work: Yeah, but you're still out of luck on 7.4. Its plpgsql doesn't have any ability to pass whole-row variables into expressions. I don't see any answer for you except breaking down the row into columns, which of course is going to be a huge notational PITA. Sure you can't move the DB off 7.4? There would be pretty considerable benefits from adopting some recent release instead. regards, tom lane