Re: Problem with return type of function ??? - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Problem with return type of function ???
Date
Msg-id 4AE07322.4010601@archonet.com
Whole thread Raw
In response to Re: Problem with return type of function ???  (Denis BUCHER <dbucherml@hsolutions.ch>)
List pgsql-sql
Denis BUCHER wrote:
>> Bienvenue dans psql 8.1.17, l'interface interactive de PostgreSQL.

OK - I'm not aware of any problems in that version. You're only one
revision from the latest 8.1.x series.

> OK I prepared what you asked and I tested it myself before sending.
> 
> And I think I've found the problem (but not the solution !) :
> 
> 
> When I dump the FUNCTION, I get this :
> 
>> CREATE test(character varying) RETURNS SETOF serial_number
> 
> instead of this :
> 
>> CREATE test(character varying) RETURNS SETOF rma.serial_number
> 
> That seems to be some bug in Postgres ?

If you look earlier you should see a line that says something like: "set
search_path = rma, ..."

Makes it irritating to cut+paste sections of the dump, but it works just
fine.

--  Richard Huxton Archonet Ltd


pgsql-sql by date:

Previous
From: Denis BUCHER
Date:
Subject: Re: Problem with return type of function ??? (corrected)
Next
From: Richard Huxton
Date:
Subject: Re: Problem with return type of function ??? (corrected)