Hopefully helps catching the bug reported as #3956
(geog_brin_inclusion_add_value not upgraded)
NOTE: only an upgrade test would catch this
git-svn-id: http://svn.osgeo.org/postgis/trunk@16225
b70326c6-7e19-0410-871a-
916f4a2858ee
-- Drop test table
DROP table test;
+
+-- Make sure all postgis-referencing probin are using the module
+-- version expected by postgis_lib_version()
+--
+SELECT distinct 'unexpected probin', proname || ':' || probin
+FROM pg_proc
+WHERE probin like '%postgis%'
+ AND probin NOT LIKE '%' ||
+ substring(postgis_lib_version() from '([0-9]*\.[0-9]*)')
+ || '%'
+ORDER BY 2;