Re: RESOLVED: varchar comparison and trim()

Поиск
Список
Период
Сортировка
От Michael Wood
Тема Re: RESOLVED: varchar comparison and trim()
Дата
Msg-id CAP6d-HUucCsqTsqs+ymWK9nDoojfDXf-YXOYeO-kM9dFTP9bwg@mail.gmail.com
обсуждение исходный текст
Ответ на RESOLVED: varchar comparison and trim()  (ta@lavabit.com)
Список 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 по дате отправления:

Предыдущее
От: ta@lavabit.com
Дата:
Сообщение: RESOLVED: varchar comparison and trim()
Следующее
От: ta@lavabit.com
Дата:
Сообщение: Re: RESOLVED: varchar comparison and trim()