[postmodern-devel] How to remove trailing spaces?

Slobodan Milnović slobodan.milnovic at gmail.com
Mon Feb 28 14:44:15 UTC 2011


2011/2/28 Marijn Haverbeke <marijnh at gmail.com>:
> Hi Slobodan,
>
> Firstly, I very much doubt Postmodern will be faster for fixed-length
> fields. I doesn't special-case them at all, so they are sent in the
> exact same way as other strings. And even if they were, there is no
> reason they'd be faster -- the Postgres protocol null-terminates every
> string.

I meant that I thougth that postgresql could be faster with fixed
lenght fields, not postmodern, sorry... :-D

> But if you need fixed-width fields, you can probably add a
> initialize-instance :after method to your DAO class that sanitizes the
> strings.

Yes, I understand. And for "regular" select, I can cleanup vars by
myself anyway. Thanks!




More information about the postmodern-devel mailing list