Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9C1AC6321F5; Wed, 7 Jan 2009 17:19:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15654-04; Wed, 7 Jan 2009 17:19:12 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f14.google.com (mail-bw0-f14.google.com [209.85.218.14]) by mail.postgresql.org (Postfix) with ESMTP id EFF946321E8; Wed, 7 Jan 2009 17:19:11 -0400 (AST) Received: by bwz7 with SMTP id 7so883540bwz.19 for ; Wed, 07 Jan 2009 13:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=eH+0sjBXQBrp9qKlOBJcd4oFtx1OieLpUR6ThcjOfiM=; b=Wr2ll+ZNJFqI8eqqIkPcP/bZ3FvPiyeCVD7DDyMuoZQPINSXwf40Cym1k9YOZF7MbO 0gXgrnYW4auAM1YnbLsdp4AfWeqNEvb/YjXF1lQLKPmRFH6rF8X1mKrS8bdxwTThAdFo P95Ns6vNTrTbjymrggjb1SvUSBKXgMYDzvc6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=tMN2rPrIZ2vo/G8ULiSEh2uMFcMCUEYZCF/KWLJOfpG/EhC5hisDXOXs/moOw86amN +VImPVjpV7NUBZCaj0dBp5gDmIKRSh9TtYJ6aAhRlrXMaczoDFuJYiwYJBsIuXSkVfHS t9SOdJEfSTtE35WdjMJClf1UUhSAg92N6M5+o= Received: by 10.103.192.2 with SMTP id u2mr8457206mup.95.1231363035924; Wed, 07 Jan 2009 13:17:15 -0800 (PST) Received: by 10.102.228.14 with HTTP; Wed, 7 Jan 2009 13:17:15 -0800 (PST) Message-ID: Date: Thu, 8 Jan 2009 02:47:15 +0530 From: "c k" To: pgsql-admin@postgresql.org, pgsql-general@postgresql.org Subject: Fail of a return query from plpgsql function for a specific table MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_268169_3772426.1231363035918" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200901/18 X-Sequence-Number: 31065 ------=_Part_268169_3772426.1231363035918 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,I have a table accgroups and many others. I have written a test function as follows. CREATE OR REPLACE FUNCTION uf_testfunction() RETURNS SETOF associates AS $BODY$ begin return query select * from associates; return; end; $BODY$ LANGUAGE 'plpgsql' VOLATILE; This works fine for above table but not works at all for accgroups table. As I searched for this over web, it is identified as a bug for tables whose columns are changed(deleted and added). Is it true? How to solve this issue? Thanks CPK ------=_Part_268169_3772426.1231363035918 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,
I have a table accgroups and many others. I have written a test function as follows.
CREATE OR REPLACE FUNCTION uf_testfunction()
  RETURNS SETOF associates AS
$BODY$
begin 
return query select * from associates;
return;
end;
$BODY$
  LANGUAGE 'plpgsql' VOLATILE;
This works fine for above table but not works at all for accgroups table. As I searched for this over web, it is identified as a bug for tables whose columns are changed(deleted and added). Is it true? 
How to solve this issue?
Thanks
CPK
------=_Part_268169_3772426.1231363035918--