Re: RESOLVED: varchar comparison and trim() - Mailing list pgsql-novice

From Michael Wood
Subject Re: RESOLVED: varchar comparison and trim()
Date
Msg-id CAP6d-HUucCsqTsqs+ymWK9nDoojfDXf-YXOYeO-kM9dFTP9bwg@mail.gmail.com
Whole thread Raw
In response to RESOLVED: varchar comparison and trim()  (ta@lavabit.com)
List pgsql-novice
Hi

On 21 December 2012 11:54, <ta@lavabit.com> wrote:
>
> Considering Kevin’s answer I have chosen to stick with “the Postgres way”
> of resolving this, but here are some of my other rumblings that someone
> might find useful:
>
> This all is about converting part of (and interoperate with PG/database) a
> legacy app that uses ISAM-like fixed length data.
> So, data and queries come in containing a lot of trailing spaces.
>
> Possible solutions for this “trailing space” problem that I’ve come to:

I just skimmed your post, but how about this for another solution:

Create insert and update triggers to trim the data as it arrives in
the database?  Will that do what you want?

--
Michael Wood <esiotrot@gmail.com>


pgsql-novice by date:

Previous
From: ta@lavabit.com
Date:
Subject: RESOLVED: varchar comparison and trim()
Next
From: ta@lavabit.com
Date:
Subject: Re: RESOLVED: varchar comparison and trim()