支持PIPE ROW语法
atlasdb=# CREATE OR REPLACE FUNCTION test()
atlasdb-# RETURN int
atlasdb-# PIPELINED
atlasdb-# AS $$
atlasdb$# DECLARE
atlasdb$# result RECORD;
atlasdb$# row RECORD;
atlasdb$# BEGIN
atlasdb$# pipe row(1);
atlasdb$# pipe row(2);
atlasdb$# return;
atlasdb$# END
atlasdb$# $$;
CREATE FUNCTION
atlasdb=# select * from table(test());
test
------
1
2
(2 rows)