mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 07:36:53 +02:00
Fix query checking consistency of table amhandlers in opr_sanity.sql
As written, the query checked for an access method of type 's', which is
not an AM type supported in the core code.
Error introduced by 8586bf7ed8
. As this query is not checking what it
should, backpatch all the way down.
Reviewed-by: Aleksander Alekseev
Discussion: https://postgr.es/m/ZVxJkAJrKbfHETiy@paquier.xyz
Backpatch-through: 12
This commit is contained in:
parent
1e468ea4ea
commit
5747f68ae2
@ -1903,7 +1903,7 @@ WHERE p2.oid = p1.amhandler AND p1.amtype = 'i' AND
|
|||||||
-- Check for table amhandler functions with the wrong signature
|
-- Check for table amhandler functions with the wrong signature
|
||||||
SELECT p1.oid, p1.amname, p2.oid, p2.proname
|
SELECT p1.oid, p1.amname, p2.oid, p2.proname
|
||||||
FROM pg_am AS p1, pg_proc AS p2
|
FROM pg_am AS p1, pg_proc AS p2
|
||||||
WHERE p2.oid = p1.amhandler AND p1.amtype = 's' AND
|
WHERE p2.oid = p1.amhandler AND p1.amtype = 't' AND
|
||||||
(p2.prorettype != 'table_am_handler'::regtype
|
(p2.prorettype != 'table_am_handler'::regtype
|
||||||
OR p2.proretset
|
OR p2.proretset
|
||||||
OR p2.pronargs != 1
|
OR p2.pronargs != 1
|
||||||
|
@ -1244,7 +1244,7 @@ WHERE p2.oid = p1.amhandler AND p1.amtype = 'i' AND
|
|||||||
|
|
||||||
SELECT p1.oid, p1.amname, p2.oid, p2.proname
|
SELECT p1.oid, p1.amname, p2.oid, p2.proname
|
||||||
FROM pg_am AS p1, pg_proc AS p2
|
FROM pg_am AS p1, pg_proc AS p2
|
||||||
WHERE p2.oid = p1.amhandler AND p1.amtype = 's' AND
|
WHERE p2.oid = p1.amhandler AND p1.amtype = 't' AND
|
||||||
(p2.prorettype != 'table_am_handler'::regtype
|
(p2.prorettype != 'table_am_handler'::regtype
|
||||||
OR p2.proretset
|
OR p2.proretset
|
||||||
OR p2.pronargs != 1
|
OR p2.pronargs != 1
|
||||||
|
Loading…
Reference in New Issue
Block a user