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

Function: addgeometrycolumn

 

 

Schema

public

 

Owner

albenard

 

Descriptions

args: table_name, column_name, srid, type, dimension, use_typmod=true - Adds a geometry column to an existing table of attributes. By default uses type modifier to define rather than constraints. Pass in false for use_typmod to get old check constraint based behavior

 

Options

Option

Value

Returns

text

Language

plpgsql

Parameters

table_name varchar

column_name varchar

new_srid integer

new_type varchar

new_dim integer

use_typmod boolean = true

 

Definition

CREATE OR REPLACE FUNCTION public.addgeometrycolumn (
 table_name varchar,
 column_name varchar,
 new_srid integer,
 new_type varchar,
 new_dim integer,
 use_typmod boolean = true
)
RETURNS text AS
$span$
DECLARE

ret  text;
BEGIN
SELECT
AddGeometryColumn('','',$1,$2,$3,$4,$5, $6) into ret;
RETURN ret;
END;
$span$
LANGUAGE
'plpgsql'
VOLATILE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.addgeometrycolumn(table_name varchar, column_name varchar, new_srid integer, new_type varchar, new_dim integer, use_typmod boolean)
IS 'args: table_name, column_name, srid, type, dimension, use_typmod=true - Adds a geometry column to an existing table of attributes. By default uses type modifier to define rather than constraints. Pass in false for use_typmod to get old check constraint based behavior';

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