Fail of a return query from plpgsql function for a specific table - Mailing list pgsql-general

From c k
Subject Fail of a return query from plpgsql function for a specific table
Date
Msg-id d8e7a1e30901071317x1eb1c731se957c95695512152@mail.gmail.com
Whole thread Raw
Responses Re: Fail of a return query from plpgsql function for a specific table
List pgsql-general
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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: stable function called for every row?
Next
From: John Randall
Date:
Subject: pg_bulkload