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

Commit63e045c

Browse files
committed
Fix query checking consistency of table amhandlers in opr_sanity.sql
As written, the query checked for an access method of type 's', which isnot an AM type supported in the core code.Error introduced by8586bf7. As this query is not checking what itshould, backpatch all the way down.Reviewed-by: Aleksander AlekseevDiscussion:https://postgr.es/m/ZVxJkAJrKbfHETiy@paquier.xyzBackpatch-through: 12
1 parent0177fc7 commit63e045c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ WHERE p1.oid = a1.amhandler AND a1.amtype = 'i' AND
18871887
-- Check for table amhandler functions with the wrong signature
18881888
SELECT a1.oid, a1.amname, p1.oid, p1.proname
18891889
FROM pg_am AS a1, pg_proc AS p1
1890-
WHERE p1.oid = a1.amhandler AND a1.amtype = 's' AND
1890+
WHERE p1.oid = a1.amhandler AND a1.amtype = 't' AND
18911891
(p1.prorettype != 'table_am_handler'::regtype
18921892
OR p1.proretset
18931893
OR p1.pronargs != 1

‎src/test/regress/sql/opr_sanity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ WHERE p1.oid = a1.amhandler AND a1.amtype = 'i' AND
11951195

11961196
SELECT a1.oid, a1.amname, p1.oid, p1.proname
11971197
FROM pg_am AS a1, pg_proc AS p1
1198-
WHERE p1.oid = a1.amhandler AND a1.amtype = 's' AND
1198+
WHERE p1.oid = a1.amhandler AND a1.amtype = 't' AND
11991199
(p1.prorettype != 'table_am_handler'::regtype
12001200
OR p1.proretset
12011201
OR p1.pronargs != 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp