Schema
Owner
postgres
Descriptions
There is no description for function _raster_constraint_info_spatially_unique
Options
Option | Value |
---|---|
Returns |
boolean |
Language |
sql |
Parameters |
rastschema name rasttable name rastcolumn name |
Definition
CREATE OR REPLACE FUNCTION public._raster_constraint_info_spatially_unique (
rastschema name,
rasttable name,
rastcolumn name
)
RETURNS boolean AS
$span$
SELECT
TRUE
FROM pg_class c, pg_namespace n, pg_attribute a, pg_constraint s, pg_index idx, pg_operator op
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 s.contype = 'x'
AND 0::smallint = ANY (s.conkey)
AND idx.indexrelid = s.conindid
AND pg_get_indexdef(idx.indexrelid, 1, true) LIKE '(' || quote_ident($3) || '::geometry)'
AND s.conexclop[1] = op.oid
AND op.oprname = '=';
$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 13/03/2014 13:23 |