Re: Problem with return type of function ??? (corrected)

From: Denis BUCHER <dbucherml(at)hsolutions(dot)ch>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with return type of function ??? (corrected)
Date: 2009-10-24 09:29:07
Message-ID: 4AE2C8E3.8000906@hsolutions.ch
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tom Lane a écrit :
> Denis BUCHER <dbucherml(at)hsolutions(dot)ch> 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.

Finally there was no real dependencies of that table, and I've found out
that the "dependency" was my function ! Using SETOF (table) makes
impossible to DROP the table. Therefore I DROP my function and was able
to follow you advice, and it worked perfectly !

Thanks a lot for your help (as well as Richard's)

Denis

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Hall 2009-10-24 11:26:09 Re: Table Valued Parameters
Previous Message Brian Modra 2009-10-23 18:32:37 Re: FW: Table Valued Parameters