Re: Help.

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: pedro(dot)baldanta(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Help.
Date: 2006-08-11 13:04:07
Message-ID: 44DC8047.3040502@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

pedro(dot)baldanta(at)gmail(dot)com wrote:
> I'd like to truncate varchar field befor insert and update.
>
> Any example of trigger to perform this action?

For something as simple as that a RULE using the trim(text) function
should work well. If that's what you're looking for.

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

// Integrate Your World //

In response to

  • Help. at 2006-08-11 12:55:28 from pedro.baldanta

Browse pgsql-general by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-08-11 13:13:08 Re: Fwd: Strange behaviour of RULE (selecting last inserted ID of 'sequenced' column)
Previous Message Michael Fuhr 2006-08-11 13:01:55 Re: Connection string