Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75b3b13

Browse files
committed
Avoid rare race condition in privileges.sql regression test.
We created a temp table, then switched to a new session, leavingthe old session to clean up its temp objects in background. If thattook long enough, the eventual attempt to drop the user that ownsthe temp table could fail, as exhibited today by sidewinder.Fix by dropping the temp table explicitly when we're done with it.It's been like this for quite some time, so back-patch to allsupported branches.Report:https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=sidewinder&dt=2018-10-16%2014%3A45%3A00
1 parenta485bac commit75b3b13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎src/test/regress/expected/privileges.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@ select has_column_privilege('mytable',2::int2,'select');
11361136

11371137
(1 row)
11381138

1139+
drop table mytable;
11391140
-- Grant options
11401141
SET SESSION AUTHORIZATION regress_user1;
11411142
CREATE TABLE atest4 (a int);

‎src/test/regress/sql/privileges.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ select has_column_privilege('mytable','........pg.dropped.2........','select');
706706
select has_column_privilege('mytable',2::int2,'select');
707707
revokeselecton table mytablefrom regress_user3;
708708
select has_column_privilege('mytable',2::int2,'select');
709+
droptable mytable;
709710

710711
-- Grant options
711712

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp