Re: type bug? - Mailing list pgsql-general

From David G. Johnston
Subject Re: type bug?
Date
Msg-id CAKFQuwaUbdeXtiQJk9ay9qRb_ij5uf1qQ_se4wVE=xsBNOnNeg@mail.gmail.com
Whole thread Raw
In response to type bug?  (ml@ft-c.de)
List pgsql-general
On Tuesday, October 5, 2021, <ml@ft-c.de> wrote:

create function test_xyz3() returns table ( b xyz)  as
$$
declare
  bb xyz;
  cc xyz;
begin
  select b, c into bb, cc from test_xyz ;
  return bb ;
end; 
$$ language plpgsql ;
-- ------

select * from test_xyz3() ; -- compiling error


Help others help you by writing out exact error messages (many of us can answer from just reading code and error messages without needing be able to execute said code ourselves).  I suspect “table test_xyz not found” due to the typo.

David J.

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: type bug?
Next
From: Pavel Stehule
Date:
Subject: Re: type bug?