rsgb
.public
Tables
(current)
Columns
Constraints
Relationships
Orphan Tables
Anomalies
Routines
_postgis_deprecate(oldname text, newname text, version text)
Parameters
Name
Type
Mode
oldname
text
IN
newname
text
IN
version
text
IN
Definition
DECLARE curver_text text; BEGIN -- -- Raises a NOTICE if it was deprecated in this version, -- a WARNING if in a previous version (only up to minor version checked) -- curver_text := '3.5.0'; IF pg_catalog.split_part(curver_text,'.',1)::int > pg_catalog.split_part(version,'.',1)::int OR ( pg_catalog.split_part(curver_text,'.',1) = pg_catalog.split_part(version,'.',1) AND pg_catalog.split_part(curver_text,'.',2) != split_part(version,'.',2) ) THEN RAISE WARNING '% signature was deprecated in %. Please use %', oldname, version, newname; ELSE RAISE DEBUG '% signature was deprecated in %. Please use %', oldname, version, newname; END IF; END;