提交 975368e2 编写于 作者: T Tom Lane

Avoid function name conflict when plpgsql and rangefuncs regression tests

execute in parallel.  Spotted by Peter.
上级 e6a8eba3
...@@ -1836,25 +1836,25 @@ select * from f1(42); ...@@ -1836,25 +1836,25 @@ select * from f1(42);
(2 rows) (2 rows)
drop function f1(int); drop function f1(int);
create function dup(in i anyelement, out j anyelement, out k anyarray) as $$ create function duplic(in i anyelement, out j anyelement, out k anyarray) as $$
begin begin
j := i; j := i;
k := array[j,j]; k := array[j,j];
return; return;
end$$ language plpgsql; end$$ language plpgsql;
select * from dup(42); select * from duplic(42);
j | k j | k
----+--------- ----+---------
42 | {42,42} 42 | {42,42}
(1 row) (1 row)
select * from dup('foo'::text); select * from duplic('foo'::text);
j | k j | k
-----+----------- -----+-----------
foo | {foo,foo} foo | {foo,foo}
(1 row) (1 row)
drop function dup(anyelement); drop function duplic(anyelement);
-- --
-- test PERFORM -- test PERFORM
-- --
......
...@@ -1629,17 +1629,17 @@ select * from f1(42); ...@@ -1629,17 +1629,17 @@ select * from f1(42);
drop function f1(int); drop function f1(int);
create function dup(in i anyelement, out j anyelement, out k anyarray) as $$ create function duplic(in i anyelement, out j anyelement, out k anyarray) as $$
begin begin
j := i; j := i;
k := array[j,j]; k := array[j,j];
return; return;
end$$ language plpgsql; end$$ language plpgsql;
select * from dup(42); select * from duplic(42);
select * from dup('foo'::text); select * from duplic('foo'::text);
drop function dup(anyelement); drop function duplic(anyelement);
-- --
-- test PERFORM -- test PERFORM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册