Re: [despammed] rejecting characters in a field - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: [despammed] rejecting characters in a field
Date
Msg-id 20050609082915.GA25807@wolff.to
Whole thread Raw
In response to Re: [despammed] rejecting characters in a field  (Andreas Kretschmer <akretschmer@despammed.com>)
Responses Re: [despammed] rejecting characters in a field
List pgsql-sql
On Thu, Jun 09, 2005 at 09:18:09 +0200, Andreas Kretschmer <akretschmer@despammed.com> wrote:
> am  09.06.2005, um 12:36:31 +0530 mailte Kenneth Gonsalves folgendes:
> > hi
> > i have a table with a varchar field called 'name'. I want postgres to 
> > reject any insert with characters defined as illegal characters, for 
> > example '*/^#'. How do i do this?
> 
> With a RULE or a TRIGGER.

Using a check constraint would be better a better way to do this.


pgsql-sql by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: SELECT very slow
Next
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] rejecting characters in a field