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

Commit95e28b7

Browse files
committed
Fix over-aggressive sanity check in misc_sanity.sql.
Fix thinko in commit8be8510: it's okay to have dbid == 0 in normal(non-pin) entries in pg_shdepend, because global objects such asdatabases are entered that way. The test would pass so long as itwas run in a cluster containing no databases/tablespaces owned by,or granted to, roles other than the bootstrap superuser. That's theexpected situation for "make check", but for "make installcheck", notso much.Reported by Ryan Murphy.Discussion:https://postgr.es/m/CAHeEsBc6EQe0mxGBKDXAwJbntgfvoAd5MQC-5362SmC3Tng_6g@mail.gmail.com
1 parent46596f8 commit95e28b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ SELECT *
2929
FROM pg_shdepend as d1
3030
WHERE refclassid = 0 OR refobjid = 0 OR
3131
deptype NOT IN ('a', 'o', 'p', 'r') OR
32-
(deptype != 'p' AND (dbid = 0 ORclassid = 0 OR objid = 0)) OR
32+
(deptype != 'p' AND (classid = 0 OR objid = 0)) OR
3333
(deptype = 'p' AND (dbid != 0 OR classid != 0 OR objid != 0 OR objsubid != 0));
3434
dbid | classid | objid | objsubid | refclassid | refobjid | deptype
3535
------+---------+-------+----------+------------+----------+---------

‎src/test/regress/sql/misc_sanity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SELECT *
3232
FROM pg_shdependas d1
3333
WHERE refclassid=0OR refobjid=0OR
3434
deptype NOTIN ('a','o','p','r')OR
35-
(deptype!='p'AND (dbid=0ORclassid=0OR objid=0))OR
35+
(deptype!='p'AND (classid=0OR objid=0))OR
3636
(deptype='p'AND (dbid!=0OR classid!=0OR objid!=0OR objsubid!=0));
3737

3838

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp