Commit cdb2614a authored by Sandro Santilli's avatar Sandro Santilli

Improve check for probin consistency

See #4000

git-svn-id: http://svn.osgeo.org/postgis/trunk@16344 b70326c6-7e19-0410-871a-916f4a2858ee
parent 5a06b111
Pipeline #16396042 passed with stage
in 20 minutes and 24 seconds
......@@ -270,13 +270,15 @@ 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()
-- Make sure all postgis-referencing probin are using the
-- same module version and path as expected by postgis_lib_version()
--
SELECT distinct 'unexpected probin', proname || ':' || probin
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]*)')
|| '%'
AND regexp_replace(probin, '(rt)?postgis(_[^-]*)?', '') !=
(
SELECT regexp_replace(probin, '(rt)?postgis(_[^-]*)?', '')
FROM pg_proc WHERE proname = 'postgis_lib_version'
)
ORDER BY 2;
......@@ -275,13 +275,15 @@ select '181', ST_AsText('GEOMETRYCOLLECTION(TRIANGLE EMPTY,TIN EMPTY)');
-- Drop test table
DROP table test;
-- Make sure all postgis-referencing probin are using the module
-- version expected by postgis_lib_version()
-- Make sure all postgis-referencing probin are using the
-- same module version and path as expected by postgis_lib_version()
--
SELECT distinct 'unexpected probin', proname || ':' || probin
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]*)')
|| '%'
AND regexp_replace(probin, '(rt)?postgis(_[^-]*)?', '') !=
(
SELECT regexp_replace(probin, '(rt)?postgis(_[^-]*)?', '')
FROM pg_proc WHERE proname = 'postgis_lib_version'
)
ORDER BY 2;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment