Opened 5 years ago

Closed 5 years ago

#4297 closed defect (fixed)

postgis_full_version: Uniformize the log level when the optional extensions aren't installed

Reported by: Algunenano Owned by: pramsey
Priority: low Milestone: PostGIS 3.0.0
Component: postgis Version: master
Keywords: Cc:

Description

After removing raster from the core extension, running postgis_full_version show several NOTICES when it's not installed:

# Select postgis_full_version();
NOTICE:  Function postgis_gdal_version() not found.  Is raster support enabled and rtpostgis.sql installed?
NOTICE:  Function postgis_raster_scripts_installed() not found. Is raster support enabled and rtpostgis.sql installed?
NOTICE:  Function postgis_raster_lib_version() not found. Is raster support enabled and rtpostgis.sql installed?
                                                                                postgis_full_version                                                                                
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 POSTGIS="3.0.0dev r17132" [EXTENSION] PGSQL="110" GEOS="3.8.0dev-CAPI-1.12.0 d037cb23" PROJ="Rel. 5.2.0, September 15th, 2018" LIBXML="2.9.8" LIBJSON="0.13.1" LIBPROTOBUF="1.3.1"
(1 row)

This doesn't happen when topology isn't installed. Since it's optional, I think those NOTICEs should be toned down for raster too.

Change History (1)

comment:1 by Raul Marin, 5 years ago

Resolution: fixed
Status: newclosed

In 17149:

postgis_full_version: Reduce raster notices to debug

Closes #4297

Note: See TracTickets for help on using tickets.