Content-Length: 293279 | pFad | http://github.com/postgrespro/postgres_cluster/commit/95e28b7f0c9e30cb636f58b5aa351e5f8ae3a473

EB Fix over-aggressive sanity check in misc_sanity.sql. · postgrespro/postgres_cluster@95e28b7 · GitHub
Skip to content

Commit 95e28b7

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

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 OR classid = 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_shdepend as d1
3333
WHERE refclassid = 0 OR refobjid = 0 OR
3434
deptype NOT IN ('a', 'o', 'p', 'r') OR
35-
(deptype != 'p' AND (dbid = 0 OR classid = 0 OR objid = 0)) OR
35+
(deptype != 'p' AND (classid = 0 OR objid = 0)) OR
3636
(deptype = 'p' AND (dbid != 0 OR classid != 0 OR objid != 0 OR objsubid != 0));
3737

3838

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/95e28b7f0c9e30cb636f58b5aa351e5f8ae3a473

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy