]> granicus.if.org Git - postgis/commitdiff
Add a test for probin correctness
authorSandro Santilli <strk@kbt.io>
Tue, 9 Jan 2018 10:32:22 +0000 (10:32 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 9 Jan 2018 10:32:22 +0000 (10:32 +0000)
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

regress/regress.sql

index 1c4fdf44317eb917cf0459f5a4070f2753abce16..402e216b404b481c41f06cd091752808ed6b85d4 100644 (file)
@@ -280,3 +280,14 @@ select '226', ST_SRID(ST_Expand('SRID=4326;POINT (0 0)'::geometry, 1))=4326;
 
 -- 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;