pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Andreas Kretschmer <akretschmer@despammed.com>
To: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: Re: [despammed] rejecting characters in a field
Date: Thu, 9 Jun 2005 03:29:15 -0500
Message-ID: <20050609082915.GA25807@wolff.to> (raw)
In-Reply-To: <20050609071809.GB303@webserv.wug-glas.de>
References: <200506091236.31790.lawgon@thenilgiris.com>
	<20050609071809.GB303@webserv.wug-glas.de>

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.



view thread (6+ messages)  latest in thread

Message-ID: <20050609082915.GA25807@wolff.to>
Permalink:  ../20050609082915.GA25807@wolff.to/
Also on:    postgresql.org/message-id/20050609082915.GA25807@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, akretschmer@despammed.com
  Subject: Re: [despammed] rejecting characters in a field
  In-Reply-To: <20050609082915.GA25807@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox