Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id BDB7A632A88 for ; Thu, 22 Oct 2009 12:51:45 -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 36745-09 for ; Thu, 22 Oct 2009 15:51:38 +0000 (UTC) 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 DFFEE62DBFD for ; Thu, 22 Oct 2009 12:51:37 -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 n9MFpYnK001269; Thu, 22 Oct 2009 11:51:34 -0400 (EDT) To: Denis BUCHER cc: pgsql-sql@postgresql.org Subject: Re: Problem with return type of function ??? (corrected) In-reply-to: <4AE07708.7020506@hsolutions.ch> References: <4AE046E4.8010205@hsolutions.ch> <29935.1256222015@sss.pgh.pa.us> <4AE07708.7020506@hsolutions.ch> Comments: In-reply-to Denis BUCHER message dated "Thu, 22 Oct 2009 17:15:20 +0200" Date: Thu, 22 Oct 2009 11:51:34 -0400 Message-ID: <1268.1256226694@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200910/110 X-Sequence-Number: 33309 Denis BUCHER writes: > To do this it will be a little complicated because of table > dependencies... And it could bug again at the next DROP COLUMN... Is > there a way to change my function (RETURN SETOF part) to specify the > column names/types ? No, not really. You could maybe un-drop the columns with some manual surgery on pg_attribute, but it doesn't seem like that's going to lead to a nice solution. If you were really desperate you could try back-porting the patch: http://archives.postgresql.org/pgsql-committers/2009-08/msg00068.php but I wouldn't want to vouch for its safety, considering it hasn't been through a beta test cycle yet. regards, tom lane