PG_FUNCTION_INFO_V1(postgis_uses_stats);
Datum postgis_uses_stats(PG_FUNCTION_ARGS)
{
-#ifdef USE_STATS
PG_RETURN_BOOL(TRUE);
-#else
- PG_RETURN_BOOL(FALSE);
-#endif
}
PG_FUNCTION_INFO_V1(postgis_autocache_bbox);
-- Do not modify this w/out also changing postgis_proc_upgrade.pl
--
CREATEFUNCTION postgis_scripts_installed() RETURNS text
- AS _POSTGIS_SQL_SELECT_POSTGIS_VERSION
+ AS _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION
LANGUAGE 'sql' _IMMUTABLE;
CREATEFUNCTION postgis_lib_version() RETURNS text
*/
#define _POSTGIS_SQL_SELECT_POSTGIS_VERSION 'SELECT ''@POSTGIS_VERSION@''::text AS version'
#define _POSTGIS_SQL_SELECT_POSTGIS_BUILD_DATE 'SELECT ''@POSTGIS_BUILD_DATE@''::text AS version'
+#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION 'SELECT ''@POSTGIS_SCRIPTS_VERSION@''::text AS version'
#define CREATEFUNCTION CREATE OR REPLACE FUNCTION