Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 22FF06321BE for ; Thu, 22 Oct 2009 11:59:02 -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 29836-04 for ; Thu, 22 Oct 2009 14:58:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.pcl-ipout01.plus.net (relay.pcl-ipout01.plus.net [212.159.7.99]) by mail.postgresql.org (Postfix) with ESMTP id 39A76634822 for ; Thu, 22 Oct 2009 11:58:54 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAIsQ4EpUXebq/2dsb2JhbADcBYQ/BA Received: from relay07.plus.net (HELO fhw-relay07.plus.net) ([84.93.230.234]) by relay.pcl-ipout01.plus.net with ESMTP; 22 Oct 2009 15:58:43 +0100 Received: from [84.51.143.99] (helo=server3.office.archonet.com) by fhw-relay07.plus.net with esmtp (Exim) id 1N0z7j-0006A4-EA; Thu, 22 Oct 2009 15:58:43 +0100 Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTPA id 2EDB3410008; Thu, 22 Oct 2009 15:58:43 +0100 (BST) Message-ID: <4AE07322.4010601@archonet.com> Date: Thu, 22 Oct 2009 15:58:42 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Denis BUCHER CC: pgsql-sql@postgresql.org Subject: Re: Problem with return type of function ??? References: <4AE042AF.9020507@hsolutions.ch> <4AE044C6.8010306@archonet.com> <4AE046B7.5070805@hsolutions.ch> <4AE05DD0.7010809@archonet.com> <4AE05E55.4000500@hsolutions.ch> <4AE06221.5040403@archonet.com> <4AE0655C.80400@hsolutions.ch> <4AE06A75.3040803@archonet.com> <4AE06D5D.4020908@hsolutions.ch> In-Reply-To: <4AE06D5D.4020908@hsolutions.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Plusnet-Relay: bc0103600624e54e091adc443fbaf1b1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1 X-Spam-Level: X-Archive-Number: 200910/106 X-Sequence-Number: 33305 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