From: Tom Lane <tgl@sss.pgh.pa.us>
To: Denis BUCHER <dbucherml@hsolutions.ch>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with return type of function ??? (corrected)
Date: Thu, 22 Oct 2009 11:51:34 -0400
Message-ID: <1268.1256226694@sss.pgh.pa.us> (raw)
In-Reply-To: <4AE07708.7020506@hsolutions.ch>
References: <4AE046E4.8010205@hsolutions.ch>
<29935.1256222015@sss.pgh.pa.us>
<4AE07708.7020506@hsolutions.ch>
Denis BUCHER <dbucherml@hsolutions.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.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, dbucherml@hsolutions.ch
Subject: Re: Problem with return type of function ??? (corrected)
In-Reply-To: <1268.1256226694@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox