pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
We have to support ANSI encoding...
2+ messages / 2 participants
[nested] [flat]

* We have to support ANSI encoding...
@ 2005-09-20 14:07  Johann Zuschlag <zuschlag2@online.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Johann Zuschlag @ 2005-09-20 14:07 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

Hi Dave,

I hope, that we can keep two drivers for the future. In fact we have to. 
Just note the excerpt of the PostgreSQL docs below:


20.1.2. Behavior

Locale support influences the following features:

    * Sort order in queries using ORDER BY 
    * The ability to use indexes with LIKE clauses 
    * The |to_char| family of functions

The drawback of using locales other than C or POSIX in PostgreSQL is its 
performance impact. It slows character handling and prevents ordinary 
indexes from being used by LIKE. For this reason use locales only if you 
actually need them.



So because of performance reasons we don't want to use UTF-8 always. The 
conclusion is that we must support both drivers.

Regards
Johann





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: We have to support ANSI encoding...
@ 2005-09-20 14:10  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2005-09-20 14:10 UTC (permalink / raw)
  To: Johann Zuschlag <zuschlag2@online.de>; +Cc: pgsql-odbc

 

> -----Original Message-----
> From: Johann Zuschlag [mailto:zuschlag2@online.de] 
> Sent: 20 September 2005 15:08
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: We have to support ANSI encoding...
> 
> Hi Dave,
> 
> I hope, that we can keep two drivers for the future. In fact 
> we have to. 
> Just note the excerpt of the PostgreSQL docs below:
> 
> 
> 20.1.2. Behavior
> 
> Locale support influences the following features:
> 
>     * Sort order in queries using ORDER BY 
>     * The ability to use indexes with LIKE clauses 
>     * The |to_char| family of functions
> 
> The drawback of using locales other than C or POSIX in 
> PostgreSQL is its 
> performance impact. It slows character handling and prevents ordinary 
> indexes from being used by LIKE. For this reason use locales 
> only if you 
> actually need them.
> 
> 
> 
> So because of performance reasons we don't want to use UTF-8 
> always. The 
> conclusion is that we must support both drivers.

Yeah, I'm pretty much resigned to that now - in fact, the only
alternative I can see is to convert incoming strings from the local
charset to ucs-2 in the *W functions of the Unicode driver - that seems
to be what the SQL Server driver does (it's configurable behaviour in
fact). Of course, that would reduce performance even further :-(

/D



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-09-20 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-20 14:07 We have to support ANSI encoding... Johann Zuschlag <zuschlag2@online.de>
2005-09-20 14:10 Re: We have to support ANSI encoding... Dave Page <dpage@vale-housing.co.uk>

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