PL/Container crashed when convert vector to setof record
HaozhouWang opened this issue · 1 comments
HaozhouWang commented
Function
create or replace function test_vtup() returns setof record as
$$
# container: plc_r_shared
as.vector(array(1:15,c(5,3)))
$$ language plcontainer;
Expected:
select * from test_vtup() as t(f1 int);
f1
----
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(15 rows)
Actual
select * from test_vtup() as t(f1 int);;
ERROR: plcontainer: Error receiving data from the client. Maybe retry later. (plcontainer.c:336)
CONTEXT: PLContainer function "test_vtup"