X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 285B6D1B484 for ; Fri, 19 Dec 2003 14:55:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 06691-10 for ; Fri, 19 Dec 2003 10:54:16 -0400 (AST) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id B3086D1B518 for ; Fri, 19 Dec 2003 10:53:47 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1AXM0l-0004vV-0X; Fri, 19 Dec 2003 14:53:51 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id EE76C171C7; Fri, 19 Dec 2003 14:53:49 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 23C5816D6F; Fri, 19 Dec 2003 14:53:48 +0000 (GMT) From: Richard Huxton To: "Jackson, Harold" , Subject: Re: problem with getting return type mismatch from function Date: Fri, 19 Dec 2003 14:53:48 +0000 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312191453.48358.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/51 X-Sequence-Number: 2211 On Thursday 18 December 2003 02:44, Jackson, Harold wrote: > Hi, > I'm having a problem with a function that I'm trying to create. I > created a data type that is composed of fields from 2 different tables. > When I create SQL functions this seems to work just fine. However, > when I try to use this data type in a plpgsql function, I get the error > message > " return type mismatch in function returning tuple at or near > "type_name"". No way is what I created a tuple. We're running > PostgreSQL 7.3.2 on Red Hat Linux. Any ideas? To expand on Peter's note - try the general or sql lists. You'll need to supply the code from the function too, otherwise no-one can help. -- Richard Huxton Archonet Ltd