Change version function from IMMUTABLE to STABLE

These functions' results will change when the extension
is updated.
This commit is contained in:
Javier Goizueta 2016-03-16 17:09:50 +01:00
parent a7e42e93cc
commit 689ec8a925

View File

@ -2,11 +2,11 @@
CREATE OR REPLACE FUNCTION cdb_crankshaft_version()
RETURNS text AS $$
SELECT '@@VERSION@@'::text;
$$ language 'sql' IMMUTABLE STRICT;
$$ language 'sql' STABLE STRICT;
-- Internal identifier of the installed extension instence
-- e.g. 'dev' for current development version
CREATE OR REPLACE FUNCTION _cdb_crankshaft_internal_version()
RETURNS text AS $$
SELECT installed_version FROM pg_available_extensions where name='crankshaft' and pg_available_extensions IS NOT NULL;
$$ language 'sql' IMMUTABLE STRICT;
$$ language 'sql' STABLE STRICT;