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

Function: postgis_constraint_dims

 

 

Schema

public

 

Owner

albenard

 

Descriptions

There is no description for function postgis_constraint_dims

 

Options

Option

Value

Returns

integer

Language

sql

Parameters

geomschema text

geomtable text

geomcolumn text

 

Definition

CREATE OR REPLACE FUNCTION public.postgis_constraint_dims (
 geomschema text,
 geomtable text,
 geomcolumn text
)
RETURNS integer AS
$span$
SELECT  replace
(split_part(s.consrc, ' = ', 2), ')', '')::integer
FROM pg_class c, pg_namespace n, pg_attribute a, pg_constraint s
WHERE n.nspname = $1
AND c.relname = $2
AND a.attname = $3
AND a.attrelid = c.oid
AND s.connamespace = n.oid
AND s.conrelid = c.oid
AND a.attnum = ANY (s.conkey)
AND s.consrc LIKE '%ndims(% = %';
$span$
LANGUAGE
'sql'
STABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 26/02/2014 11:51
Previous topic Chapter index Next topic