Harden new test case against force_parallel_mode = regress.
Per buildfarm: worker processes can't see a role created in the current transaction.
This commit is contained in:
parent
3dfae91f7a
commit
98a88bc2bc
@ -5248,9 +5248,9 @@ reset work_mem;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- check \df+
|
-- check \df+
|
||||||
begin;
|
|
||||||
-- we have to use functions with a predictable owner name, so make a role
|
-- we have to use functions with a predictable owner name, so make a role
|
||||||
create role regress_psql_user superuser;
|
create role regress_psql_user superuser;
|
||||||
|
begin;
|
||||||
set session authorization regress_psql_user;
|
set session authorization regress_psql_user;
|
||||||
create function psql_df_internal (float8)
|
create function psql_df_internal (float8)
|
||||||
returns float8
|
returns float8
|
||||||
@ -5275,6 +5275,7 @@ comment on function psql_df_plpgsql () is 'some comment';
|
|||||||
(3 rows)
|
(3 rows)
|
||||||
|
|
||||||
rollback;
|
rollback;
|
||||||
|
drop role regress_psql_user;
|
||||||
-- check \sf
|
-- check \sf
|
||||||
\sf information_schema._pg_expandarray
|
\sf information_schema._pg_expandarray
|
||||||
CREATE OR REPLACE FUNCTION information_schema._pg_expandarray(anyarray, OUT x anyelement, OUT n integer)
|
CREATE OR REPLACE FUNCTION information_schema._pg_expandarray(anyarray, OUT x anyelement, OUT n integer)
|
||||||
|
@ -1276,9 +1276,9 @@ reset work_mem;
|
|||||||
\do && anyarray *
|
\do && anyarray *
|
||||||
|
|
||||||
-- check \df+
|
-- check \df+
|
||||||
begin;
|
|
||||||
-- we have to use functions with a predictable owner name, so make a role
|
-- we have to use functions with a predictable owner name, so make a role
|
||||||
create role regress_psql_user superuser;
|
create role regress_psql_user superuser;
|
||||||
|
begin;
|
||||||
set session authorization regress_psql_user;
|
set session authorization regress_psql_user;
|
||||||
|
|
||||||
create function psql_df_internal (float8)
|
create function psql_df_internal (float8)
|
||||||
@ -1297,6 +1297,7 @@ comment on function psql_df_plpgsql () is 'some comment';
|
|||||||
|
|
||||||
\df+ psql_df_*
|
\df+ psql_df_*
|
||||||
rollback;
|
rollback;
|
||||||
|
drop role regress_psql_user;
|
||||||
|
|
||||||
-- check \sf
|
-- check \sf
|
||||||
\sf information_schema._pg_expandarray
|
\sf information_schema._pg_expandarray
|
||||||
|
Loading…
x
Reference in New Issue
Block a user