Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: CHECK-Constraint mit WHERE ?



am  20.06.2006, um  9:23:00 +0000 mailte Martin Spott folgendes:
> Ich moechte aber, dass der Constraint nur auf bestimmte Geometrien
> angewendet wird und wuensche mir sinngemaess so etwas wie:
> 
>   CONSTRAINT enforce_covertype CHECK (covertype >= 0 AND covertype < 6)
>     WHERE geomtype LIKE 'POLYGON%'
> 
> Das gibbet aber unter PostgreSQL nicht. Kennt jemand einen eleganten
> und/oder gebraeuchlichen Workaround ?

Ohne jetzt von GIS Ahnung zu haben, aber eine Funktion sollte als
CHECK-Constraint gehen.


Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group