Skip to content

Commit 98a88bc

Browse files
committed
Harden new test case against force_parallel_mode = regress.
Per buildfarm: worker processes can't see a role created in the current transaction.
1 parent 3dfae91 commit 98a88bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/regress/expected/psql.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5248,9 +5248,9 @@ reset work_mem;
52485248
(1 row)
52495249

52505250
-- check \df+
5251-
begin;
52525251
-- we have to use functions with a predictable owner name, so make a role
52535252
create role regress_psql_user superuser;
5253+
begin;
52545254
set session authorization regress_psql_user;
52555255
create function psql_df_internal (float8)
52565256
returns float8
@@ -5275,6 +5275,7 @@ comment on function psql_df_plpgsql () is 'some comment';
52755275
(3 rows)
52765276

52775277
rollback;
5278+
drop role regress_psql_user;
52785279
-- check \sf
52795280
\sf information_schema._pg_expandarray
52805281
CREATE OR REPLACE FUNCTION information_schema._pg_expandarray(anyarray, OUT x anyelement, OUT n integer)

src/test/regress/sql/psql.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,9 +1276,9 @@ reset work_mem;
12761276
\do && anyarray *
12771277

12781278
-- check \df+
1279-
begin;
12801279
-- we have to use functions with a predictable owner name, so make a role
12811280
create role regress_psql_user superuser;
1281+
begin;
12821282
set session authorization regress_psql_user;
12831283

12841284
create function psql_df_internal (float8)
@@ -1297,6 +1297,7 @@ comment on function psql_df_plpgsql () is 'some comment';
12971297

12981298
\df+ psql_df_*
12991299
rollback;
1300+
drop role regress_psql_user;
13001301

13011302
-- check \sf
13021303
\sf information_schema._pg_expandarray

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy