pggeodb-preprod.nancy.inra.fr/db_onf_gde - db_onf_gde on pggeodb-preprod.nancy.inra.fr
Previous topic Chapter index Next topic

Function: _postgis_pgsql_version

 

 

Schema

public

 

Owner

postgres

 

Descriptions

There is no description for function _postgis_pgsql_version

 

Options

Option

Value

Returns

text

Language

sql

Parameters

There are no parameters for function _postgis_pgsql_version

 

Definition

CREATE OR REPLACE FUNCTION public._postgis_pgsql_version (
)
RETURNS text AS
$span$
SELECT CASE WHEN
split_part(s,'.',1)::integer > 9 THEN split_part(s,'.',1) || '0' ELSE split_part(s,'.', 1) || split_part(s,'.', 2) END AS v
FROM substring(version(), 'PostgreSQL ([0-9\.]+)') AS s;
$span$
LANGUAGE
'sql'
STABLE
CALLED ON NULL INPUT
SECURITY INVOKER
COST
100;

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 07/12/2018 13:23
Previous topic Chapter index Next topic