pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC Driver stability
19+ messages / 8 participants
[nested] [flat]

* ODBC Driver stability
@ 2004-11-08 22:29 Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  0 siblings, 1 reply; 19+ messages in thread

From: Gary Doades @ 2004-11-08 22:29 UTC (permalink / raw)
  To: pgsql-odbc

Unfortunately I have to come to the conclusion that the latest ODBC 
driver (8.0.0.2) is not as stable as first thought. When I initially 
tested it I was using a single application with a few connections and it 
seemed OK (better than 8.0.0.1 anyway)

Recently I have been doing heavier load testing within my ASP.NET 
application. Being a Web app on Windows it is inheriently multi-threaded 
and uses the MS .NET connect-execute-fetch-disconnect cycle heavily.

After obtaining just 10 connections and executing SQL the app starts to 
report random database failure messages "No error" and null reference 
exceptions withing Syetem.Data are common.

Various restarts, checking there are no other psqlodbc dlls and various 
test loads end up with the same situation fairly quickly.

Switching back to the 7.3.2.0 ODBC driver and the app will run stable 
for hours (or for as long as the test runs) with no driver errors.

I can now reproduce this problem in a single Windows GUI app by getting 
lots of connections and radpidly executing SQL immediately after opening 
each of the connections.
Sadly being in the .NET environment I can't see how to debug the driver 
in these situations or how to get more information about the faults. It 
still looks like buffer overruns causing the main problems.

I'm a bit concerned that Postgres is going to end up with a fantastic 
server (even on Windows!), but badly let down by the ODBC driver, which 
I suspect that a lot of the Windows newcomers will want to use. I know 
that 7.3.2.0 is stable at the moment, but what is the way forward?

Regards,
Gary.



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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
@ 2004-11-10 09:54 ` Markus Donath <donath@netapps.de>
  2004-11-10 19:15   ` Re: ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-16 13:42   ` Re: ODBC Driver stability Shachar Shemesh <psql@shemesh.biz>
  0 siblings, 2 replies; 19+ messages in thread

From: Markus Donath @ 2004-11-10 09:54 UTC (permalink / raw)
  To: Gary Doades <gpd@gpdnet.co.uk>; pgsql-odbc

Hello,

i have also tested several PGSQL ODBC driver versions with Windows 2000, IIS
(the Windows webserver) and ASP.
Version 7.3.2.0 runs best in a multithreaded environment, but it is still
not 100% stable.
The webserver sometimes hangs (depends on the load) so that the process
needs to be killed.
All in all, the Postgres ODBC driver does not fit our needs for stability,
and as the posts in this newsgroup show, there is no development going on.
To me, it looks like no one here uses the ODBC-driver for server
applications with windows.
Our conclusion is that Postgres is not usable with ODBC on windows, and no
stable driver will be available soon. We are going to switch a different
database. To bad, as the database itself runs fast and stable.

bye bye postgres !


http://home.arcor.de/mkdna/


> -----Ursprüngliche Nachricht-----
> Von: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org]Im Auftrag von Gary Doades
> Gesendet: Montag, 8. November 2004 23:30
> An: pgsql-odbc@postgresql.org
> Betreff: [ODBC] ODBC Driver stability
>
>
> Unfortunately I have to come to the conclusion that the latest ODBC
> driver (8.0.0.2) is not as stable as first thought. When I initially
> tested it I was using a single application with a few connections and it
> seemed OK (better than 8.0.0.1 anyway)
>
> Recently I have been doing heavier load testing within my ASP.NET
> application. Being a Web app on Windows it is inheriently multi-threaded
> and uses the MS .NET connect-execute-fetch-disconnect cycle heavily.
>
> After obtaining just 10 connections and executing SQL the app starts to
> report random database failure messages "No error" and null reference
> exceptions withing Syetem.Data are common.
>
> Various restarts, checking there are no other psqlodbc dlls and various
> test loads end up with the same situation fairly quickly.
>
> Switching back to the 7.3.2.0 ODBC driver and the app will run stable
> for hours (or for as long as the test runs) with no driver errors.
>
> I can now reproduce this problem in a single Windows GUI app by getting
> lots of connections and radpidly executing SQL immediately after opening
> each of the connections.
> Sadly being in the .NET environment I can't see how to debug the driver
> in these situations or how to get more information about the faults. It
> still looks like buffer overruns causing the main problems.
>
> I'm a bit concerned that Postgres is going to end up with a fantastic
> server (even on Windows!), but badly let down by the ODBC driver, which
> I suspect that a lot of the Windows newcomers will want to use. I know
> that 7.3.2.0 is stable at the moment, but what is the way forward?
>
> Regards,
> Gary.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.789 / Virus Database: 534 - Release Date: 07.11.2004
>




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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
@ 2004-11-10 19:15   ` Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 21:00     ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-11 09:45     ` Re: ODBC Driver stability md-postgres-donath@netapps.de
  1 sibling, 2 replies; 19+ messages in thread

From: Gary Doades @ 2004-11-10 19:15 UTC (permalink / raw)
  To: Markus Donath <donath@netapps.de>; +Cc: pgsql-odbc

Markus Donath wrote:
> Hello,
> 
> i have also tested several PGSQL ODBC driver versions with Windows 2000, IIS
> (the Windows webserver) and ASP.
> Version 7.3.2.0 runs best in a multithreaded environment, but it is still
> not 100% stable.
> The webserver sometimes hangs (depends on the load) so that the process
> needs to be killed.
> All in all, the Postgres ODBC driver does not fit our needs for stability,
> and as the posts in this newsgroup show, there is no development going on.
> To me, it looks like no one here uses the ODBC-driver for server
> applications with windows.
> Our conclusion is that Postgres is not usable with ODBC on windows, and no
> stable driver will be available soon. We are going to switch a different
> database. To bad, as the database itself runs fast and stable.
> 
> bye bye postgres !
> 

I have to admit that I have not had any problems with 7.3.2.0 and I have 
hit it pretty hard. In real-load tests with around 100 concurrent 
connections from an ASP.NET server ticking over at around 12 connections 
per second on average, ODBC pooling on, with a good mix of 
selects/update/inserts it has not hung at all.

How do you know that it is the ODBC driver itself that is hanging the 
web app?

Cheers,
Gary.



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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  2004-11-10 19:15   ` Re: ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
@ 2004-11-10 21:00     ` Jaime Casanova <systemguards@yahoo.com>
  1 sibling, 0 replies; 19+ messages in thread

From: Jaime Casanova @ 2004-11-10 21:00 UTC (permalink / raw)
  To: Gary Doades <gpd@gpdnet.co.uk>; Markus Donath <donath@netapps.de>; +Cc: pgsql-odbc

 --- Gary Doades <gpd@gpdnet.co.uk> escribió: 
> Markus Donath wrote:
> > Hello,
> > 
> > i have also tested several PGSQL ODBC driver
> versions with Windows 2000, IIS
> > (the Windows webserver) and ASP.
> > Version 7.3.2.0 runs best in a multithreaded
> environment, but it is still
> > not 100% stable.
> > The webserver sometimes hangs (depends on the
> load) so that the process
> > needs to be killed.
> > All in all, the Postgres ODBC driver does not fit
> our needs for stability,
> > and as the posts in this newsgroup show, there is
> no development going on.
> > To me, it looks like no one here uses the
> ODBC-driver for server
> > applications with windows.
> > Our conclusion is that Postgres is not usable with
> ODBC on windows, and no
> > stable driver will be available soon. We are going
> to switch a different
> > database. To bad, as the database itself runs fast
> and stable.
> > 
> > bye bye postgres !
> > 
> 
> I have to admit that I have not had any problems
> with 7.3.2.0 and I have 
> hit it pretty hard. In real-load tests with around
> 100 concurrent 
> connections from an ASP.NET server ticking over at
> around 12 connections 
> per second on average, ODBC pooling on, with a good
> mix of 
> selects/update/inserts it has not hung at all.
> 
> How do you know that it is the ODBC driver itself
> that is hanging the 
> web app?
> 
> Cheers,
> Gary.
> 

Actually the v8.0.0.2 is completely unstable not the
same with v7.3.2 that has proben to be very stable at
least in my case. Are you sure you haven't
accidentally installed the v8 (maybe, you installed
pgsql8.0betaX and it installed psqlodbc (v8.0.0.2).

That happens to me and i was getting strange errors
until i find what happened.

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  2004-11-10 19:15   ` Re: ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
@ 2004-11-11 09:45     ` md-postgres-donath@netapps.de
  2004-11-11 18:39       ` Re: ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  1 sibling, 1 reply; 19+ messages in thread

From: md-postgres-donath@netapps.de @ 2004-11-11 09:45 UTC (permalink / raw)
  To: pgsql-odbc


The same application runs stable with oracle and mssql.
I used iis crash dumps to find out that it was the odbc driver causing the
problems and sent some of the odbc-logs to hiroshi (end of 2003).
Maybe i'm using different features of the driver that cause problems.
could you send me your odbc driver settings / connection string ?

I did not test or install the 8.x.x.x drivers.

bye,
Markus.

> -----Ursprüngliche Nachricht-----
> Von: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org]Im Auftrag von Gary Doades
> Gesendet: Mittwoch, 10. November 2004 20:16
> An: Markus Donath
> Cc: pgsql-odbc@postgresql.org
> Betreff: Re: [ODBC] ODBC Driver stability
>
>
> Markus Donath wrote:
> > Hello,
> >
> > i have also tested several PGSQL ODBC driver versions with
> Windows 2000, IIS
> > (the Windows webserver) and ASP.
> > Version 7.3.2.0 runs best in a multithreaded environment, but
> it is still
> > not 100% stable.
> > The webserver sometimes hangs (depends on the load) so that the process
> > needs to be killed.
> > All in all, the Postgres ODBC driver does not fit our needs for
> stability,
> > and as the posts in this newsgroup show, there is no
> development going on.
> > To me, it looks like no one here uses the ODBC-driver for server
> > applications with windows.
> > Our conclusion is that Postgres is not usable with ODBC on
> windows, and no
> > stable driver will be available soon. We are going to switch a different
> > database. To bad, as the database itself runs fast and stable.
> >
> > bye bye postgres !
> >
>
> I have to admit that I have not had any problems with 7.3.2.0 and I have
> hit it pretty hard. In real-load tests with around 100 concurrent
> connections from an ASP.NET server ticking over at around 12 connections
> per second on average, ODBC pooling on, with a good mix of
> selects/update/inserts it has not hung at all.
>
> How do you know that it is the ODBC driver itself that is hanging the
> web app?
>
> Cheers,
> Gary.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.794 / Virus Database: 538 - Release Date: 10.11.2004
>




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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  2004-11-10 19:15   ` Re: ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-11 09:45     ` Re: ODBC Driver stability md-postgres-donath@netapps.de
@ 2004-11-11 18:39       ` Gary Doades <gpd@gpdnet.co.uk>
  0 siblings, 0 replies; 19+ messages in thread

From: Gary Doades @ 2004-11-11 18:39 UTC (permalink / raw)
  To: md-postgres-donath@netapps.de; pgsql-odbc

md-postgres-donath@netapps.de wrote:
> The same application runs stable with oracle and mssql.
> I used iis crash dumps to find out that it was the odbc driver causing the
> problems and sent some of the odbc-logs to hiroshi (end of 2003).
> Maybe i'm using different features of the driver that cause problems.
> could you send me your odbc driver settings / connection string ?

I'm using ODBC from C# .NET, the only connection string settings I do 
are UID,PWD,SERVER & DATABASE. I guess all the other settings are 
whatever the defaults are. I do not set up a DSN, but use the 
driver={PostgreSQL} directly in code.

Most of the calls that are made are connect/execute/fetch/disconnect. 
Looking at the ODBC trace output this is most of the SQLxxx calls with a 
load of SQLDescribe... liberally sprinked in there.

> I did not test or install the 8.x.x.x drivers.

I did, unfortunately. I don't think any of the code changes have broken 
the 8 series driver, there aren't that many changes. I think it is 
mainly in the way it is compiled that has introduced problems. More 
likely uncovered problems that were already there, but never caught 
anyone out.

Cheers,
Gary.




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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
@ 2004-11-16 13:42   ` Shachar Shemesh <psql@shemesh.biz>
  2004-11-16 16:40     ` Re: ODBC Driver stability md-postgres-donath@netapps.de
  1 sibling, 1 reply; 19+ messages in thread

From: Shachar Shemesh @ 2004-11-16 13:42 UTC (permalink / raw)
  To: Markus Donath <donath@netapps.de>; +Cc: Gary Doades <gpd@gpdnet.co.uk>; pgsql-odbc

Markus Donath wrote:

>Hello,
>
>Our conclusion is that Postgres is not usable with ODBC on windows, and no
>stable driver will be available soon.
>
Have you tried other options? There are both a .NET driver and an OleDB 
provider, though can only attest to the second.

OLE DB is nearing the point where it should be quite usable for server 
use. The .NET provider has been around even longer, so may be even 
better. In any case, the OLE infrastructure prevents threading problems 
(the hard way, unfortunately), and PgOleDb uses libpq for actual 
database communication.

> We are going to switch a different
>database. To bad, as the database itself runs fast and stable.
>
>bye bye postgres !
>  
>
Sad to see you go.

          Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  2004-11-16 13:42   ` Re: ODBC Driver stability Shachar Shemesh <psql@shemesh.biz>
@ 2004-11-16 16:40     ` md-postgres-donath@netapps.de
  2004-11-16 17:28       ` Re: ODBC Driver stability Shachar Shemesh <psql@shemesh.biz>
  0 siblings, 1 reply; 19+ messages in thread

From: md-postgres-donath@netapps.de @ 2004-11-16 16:40 UTC (permalink / raw)
  To: Shachar Shemesh <psql@shemesh.biz>; +Cc: pgsql-odbc

Hello Shachar,

oh ... good news ... i didn't know that the ole db driver has been released.
i will check the ole db driver, thank you for the information !

what do you mean with "OLE ... prevents threading problems the hard way" ?

bye,
Markus.

> -----Ursprüngliche Nachricht-----
> Von: Shachar Shemesh [mailto:psql@shemesh.biz]
> Gesendet: Dienstag, 16. November 2004 14:43
> An: Markus Donath
> Cc: Gary Doades; pgsql-odbc@postgresql.org
> Betreff: Re: [ODBC] ODBC Driver stability
>
>
> Markus Donath wrote:
>
> >Hello,
> >
> >Our conclusion is that Postgres is not usable with ODBC on
> windows, and no
> >stable driver will be available soon.
> >
> Have you tried other options? There are both a .NET driver and an OleDB
> provider, though can only attest to the second.
>
> OLE DB is nearing the point where it should be quite usable for server
> use. The .NET provider has been around even longer, so may be even
> better. In any case, the OLE infrastructure prevents threading problems
> (the hard way, unfortunately), and PgOleDb uses libpq for actual
> database communication.
>
> > We are going to switch a different
> >database. To bad, as the database itself runs fast and stable.
> >
> >bye bye postgres !
> >
> >
> Sad to see you go.
>
>           Shachar
>
> --
> Shachar Shemesh
> Lingnu Open Source Consulting ltd.
> http://www.lingnu.com/
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.796 / Virus Database: 540 - Release Date: 13.11.2004
>




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

* Re: ODBC Driver stability
  2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
  2004-11-10 09:54 ` Re: ODBC Driver stability Markus Donath <donath@netapps.de>
  2004-11-16 13:42   ` Re: ODBC Driver stability Shachar Shemesh <psql@shemesh.biz>
  2004-11-16 16:40     ` Re: ODBC Driver stability md-postgres-donath@netapps.de
@ 2004-11-16 17:28       ` Shachar Shemesh <psql@shemesh.biz>
  0 siblings, 0 replies; 19+ messages in thread

From: Shachar Shemesh @ 2004-11-16 17:28 UTC (permalink / raw)
  To: md-postgres-donath@netapps.de; +Cc: pgsql-odbc; Postgresql OLE DB development <oledb-dev@gborg.postgresql.org>

md-postgres-donath@netapps.de wrote:

>Hello Shachar,
>
>oh ... good news ... i didn't know that the ole db driver has been released.
>i will check the ole db driver, thank you for the information !
>  
>
It has not been "officially" released yet, but version 1.0.0.15 made a 
major move in that direction. It has purged itself from ugly debug 
asserts and message boxes. In addition to that, it is being actively 
maintained, and so I'm hoping for a proper release soon.

>what do you mean with "OLE ... prevents threading problems the hard way" ?
>  
>
OLE (well, DCOM really) allows a threading solution for the lazy (for 
the time being, that's us). The server runs (by default) in a single 
thread, and all other threads use a proxy to call it. Right now we are 
too focused on getting this version functionally complete to start 
worrying about this. As OLE DB is generally a faster concept anyways, 
I'm hoping this won't be too much of a problem.

Work on getting multi threading into the provider cannot start until I 
understand libpq's thread safety.

          Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




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

* Re: ODBC Driver stability
@ 2004-11-12 08:37 Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Dave Page @ 2004-11-12 08:37 UTC (permalink / raw)
  To: Gary Doades <gpd@gpdnet.co.uk>; md-postgres-donath@netapps.de; pgsql-odbc

 

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Gary Doades
> Sent: 11 November 2004 18:40
> To: md-postgres-donath@netapps.de; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] ODBC Driver stability
> 
> md-postgres-donath@netapps.de wrote:
> > The same application runs stable with oracle and mssql.
> > I used iis crash dumps to find out that it was the odbc 
> driver causing 
> > the problems and sent some of the odbc-logs to hiroshi (end 
> of 2003).
> > Maybe i'm using different features of the driver that cause 
> problems.
> > could you send me your odbc driver settings / connection string ?
> 
> I'm using ODBC from C# .NET, the only connection string 
> settings I do are UID,PWD,SERVER & DATABASE. I guess all the 
> other settings are whatever the defaults are. I do not set up 
> a DSN, but use the driver={PostgreSQL} directly in code.
> 
> Most of the calls that are made are connect/execute/fetch/disconnect. 
> Looking at the ODBC trace output this is most of the SQLxxx 
> calls with a load of SQLDescribe... liberally sprinked in there.
> 
> > I did not test or install the 8.x.x.x drivers.
> 
> I did, unfortunately. I don't think any of the code changes 
> have broken the 8 series driver, there aren't that many 
> changes. I think it is mainly in the way it is compiled that 
> has introduced problems. More likely uncovered problems that 
> were already there, but never caught anyone out.

I don't have a clue what this/these problem(s) might be at the moment -
if someone can at least get a backtrace from a crash, or mylog output
from a crash then we stand much more of a chance of figuring something
out. I'm not saying I *can* fix it though, but I'll certainly take a
look.

Regards, Dave



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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
@ 2004-11-12 21:10 ` Jaime Casanova <systemguards@yahoo.com>
  2004-11-12 22:39   ` Re: ODBC Driver stability Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 19+ messages in thread

From: Jaime Casanova @ 2004-11-12 21:10 UTC (permalink / raw)
  To: pgsql-odbc

Hi Dave,

I was having a problem with the odbc driver, when i
install it (v8.0.0.2) the spanish character that
appears in my vb application get weird. Can you point
me what place in the code is more significativly to
this bug?

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
@ 2004-11-12 22:39   ` Peter Eisentraut <peter_e@gmx.net>
  2004-11-12 22:56     ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Peter Eisentraut @ 2004-11-12 22:39 UTC (permalink / raw)
  To: Jaime Casanova <systemguards@yahoo.com>; pgsql-odbc

Jaime Casanova wrote:
> I was having a problem with the odbc driver, when i
> install it (v8.0.0.2) the spanish character that
> appears in my vb application get weird.

What encoding do you have your client set to?  What encoding does your 
client actually produce?  What encoding do you have your server set to?  
What Spanish character do you mean?  What exactly does "weird" mean?

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/




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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-12 22:39   ` Re: ODBC Driver stability Peter Eisentraut <peter_e@gmx.net>
@ 2004-11-12 22:56     ` Jaime Casanova <systemguards@yahoo.com>
  2004-11-13 14:01       ` Re: ODBC Driver stability Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  0 siblings, 1 reply; 19+ messages in thread

From: Jaime Casanova @ 2004-11-12 22:56 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; pgsql-odbc

 --- Peter Eisentraut <peter_e@gmx.net> escribió: 
> Jaime Casanova wrote:
> > I was having a problem with the odbc driver, when
> i
> > install it (v8.0.0.2) the spanish character that
> > appears in my vb application get weird.
> 
> What encoding do you have your client set to?  
> What encoding does your client actually produce?  

my client is in windows (i don't know encoding)

> What encoding do you have your server set to?  
The database has sql_ascii

> What Spanish character do you mean?  

ñ, Ñ, á, é, í, ó, ú

> What exactly does "weird" mean?

matrícula become matr||ula
peña      become pe°a
somethings like that

actually i get that problem in 8.0.0.2 but not in
v7.3.2

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-12 22:39   ` Re: ODBC Driver stability Peter Eisentraut <peter_e@gmx.net>
  2004-11-12 22:56     ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
@ 2004-11-13 14:01       ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  2004-11-13 23:31         ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Benjamin Riefenstahl @ 2004-11-13 14:01 UTC (permalink / raw)
  To: Jaime Casanova <systemguards@yahoo.com>; +Cc: pgsql-odbc

Hi Jaime,


Jaime Casanova writes:
> The database has sql_ascii
>
>> What Spanish character do you mean?  
>
> ñ, Ñ, á, é, í, ó, ú

Just to support and emphasize what Dave already said:

Because there are no Spanish characters in ASCII (ASCII is a 7 bit
encoding), a database in SQL_ASCII may do anything with those
characters.  Change the database encoding to LATIN9 (if you only need
Spanish plus the Euro character) or UNICODE (if you may need to
support other languages in the future).

> matrícula become matr||ula
> peña      become pe°a

IOW, the database or the ODBC driver has replaced the non-ASCII
characters with ASCII characters that have the same code point but
modulo 128 (throwing away the highest bit).  That is a common
behaviour for ASCII-only systems, e.g. also often seen in email.  This
behaviour can not be reversed after it has happened.


benny




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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-12 22:39   ` Re: ODBC Driver stability Peter Eisentraut <peter_e@gmx.net>
  2004-11-12 22:56     ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-13 14:01       ` Re: ODBC Driver stability Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
@ 2004-11-13 23:31         ` Jaime Casanova <systemguards@yahoo.com>
  2004-11-14 15:13           ` Re: ODBC Driver stability Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  0 siblings, 1 reply; 19+ messages in thread

From: Jaime Casanova @ 2004-11-13 23:31 UTC (permalink / raw)
  To: pgsql-odbc

 --- Benjamin Riefenstahl
<Benjamin.Riefenstahl@epost.de> escribió: 
> Hi Jaime,
> 
> 
> Jaime Casanova writes:
> > The database has sql_ascii
> >
> >> What Spanish character do you mean?  
> >
> > ñ, Ñ, á, é, í, ó, ú
> 
> Just to support and emphasize what Dave already
> said:
> 
> Because there are no Spanish characters in ASCII
> (ASCII is a 7 bit
> encoding), a database in SQL_ASCII may do anything
> with those
> characters.  Change the database encoding to LATIN9
> (if you only need
> Spanish plus the Euro character) or UNICODE (if you
> may need to
> support other languages in the future).
> 
> > matrícula become matr||ula
> > peña      become pe°a
> 
> IOW, the database or the ODBC driver has replaced
> the non-ASCII
> characters with ASCII characters that have the same
> code point but
> modulo 128 (throwing away the highest bit).  That is
> a common
> behaviour for ASCII-only systems, e.g. also often
> seen in email.  This
> behaviour can not be reversed after it has happened.
> 
> 
> benny
> 

Just for me to understand this right. when i use vb
with the odbc i got these changes in non-ASCII
characters but NO when using EMS pgmanager nor when
selecting directly from psql.

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



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

* Re: ODBC Driver stability
  2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:10 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-12 22:39   ` Re: ODBC Driver stability Peter Eisentraut <peter_e@gmx.net>
  2004-11-12 22:56     ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  2004-11-13 14:01       ` Re: ODBC Driver stability Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  2004-11-13 23:31         ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
@ 2004-11-14 15:13           ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
  0 siblings, 0 replies; 19+ messages in thread

From: Benjamin Riefenstahl @ 2004-11-14 15:13 UTC (permalink / raw)
  To: Jaime Casanova <systemguards@yahoo.com>; +Cc: pgsql-odbc

Hi Jaime,


Jaime Casanova writes:
> Just for me to understand this right. when i use vb with the odbc i
> got these changes in non-ASCII characters but NO when using EMS
> pgmanager nor when selecting directly from psql.

Probably the ODBC driver tries to convert from the database encoding
to the system encoding of MS Windows.  The translation loses for
characters that are not defined in SQL_ASCII.

Applications that use a different PostgreSQL client library may use
other encoding conversion routines or no conversion at all.  But
that's probably just luck and may change with the next version of
those tools.

>Benjamin Riefenstahl escribió: 
>> Because there are no Spanish characters in ASCII (ASCII is a 7 bit
>> encoding), a database in SQL_ASCII may do anything with those
>> characters.

To be accurate here, replace "a database" with "any module that is
involved on the way from the database to the display and back again."


benny




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

* Re: ODBC Driver stability
@ 2004-11-12 21:32 Dave Page <dpage@vale-housing.co.uk>
  2004-11-12 21:43 ` Re: ODBC Driver stability Jaime Casanova <systemguards@yahoo.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Dave Page @ 2004-11-12 21:32 UTC (permalink / raw)
  To: Jaime Casanova <systemguards@yahoo.com>; pgsql-odbc

 

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jaime Casanova
> Sent: 12 November 2004 21:10
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] ODBC Driver stability
> 
> Hi Dave,
> 
> I was having a problem with the odbc driver, when i install 
> it (v8.0.0.2) the spanish character that appears in my vb 
> application get weird. Can you point me what place in the 
> code is more significativly to this bug?

Err, probably not (unless I'm the wrong Dave). Is your database encoded
as SQL_ASCII? I know very little about encodings, but iirc non-ASCII
characters are not guaranteed to work correctly although they appear to
in some front end interfaces. I believe you need to use one of the latin
encodings or unicode to resolve this.

Regards, Dave.



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

* Re: ODBC Driver stability
  2004-11-12 21:32 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
@ 2004-11-12 21:43 ` Jaime Casanova <systemguards@yahoo.com>
  0 siblings, 0 replies; 19+ messages in thread

From: Jaime Casanova @ 2004-11-12 21:43 UTC (permalink / raw)
  To: pgsql-odbc

 --- Dave Page <dpage@vale-housing.co.uk> escribió: 
> > 
> > Hi Dave,
> > 
> > I was having a problem with the odbc driver, when
> i install 
> > it (v8.0.0.2) the spanish character that appears
> in my vb 
> > application get weird. Can you point me what place
> in the 
> > code is more significativly to this bug?
> 
> Err, probably not (unless I'm the wrong Dave). Is
> your database encoded
> as SQL_ASCII? I know very little about encodings,
> but iirc non-ASCII
> characters are not guaranteed to work correctly
> although they appear to
> in some front end interfaces. I believe you need to
> use one of the latin
> encodings or unicode to resolve this.
> 
> Regards, Dave.
> 

I will probe with other encodings as you suggest but
driver v7.3.2 works fine on this and only if a install
v8.0.0.2 have problem. 

Are you sure it's *just* an encoding problem?

regards,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



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

* Re: ODBC Driver stability
@ 2004-11-12 22:04 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 19+ messages in thread

From: Dave Page @ 2004-11-12 22:04 UTC (permalink / raw)
  To: Jaime Casanova <systemguards@yahoo.com>; pgsql-odbc

 

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jaime Casanova
> Sent: 12 November 2004 21:44
> To: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] ODBC Driver stability
> 
>  --- Dave Page <dpage@vale-housing.co.uk> escribió: 
> > > 
> > > Hi Dave,
> > > 
> > > I was having a problem with the odbc driver, when
> > i install
> > > it (v8.0.0.2) the spanish character that appears
> > in my vb
> > > application get weird. Can you point me what place
> > in the
> > > code is more significativly to this bug?
> > 
> > Err, probably not (unless I'm the wrong Dave). Is your database 
> > encoded as SQL_ASCII? I know very little about encodings, but iirc 
> > non-ASCII characters are not guaranteed to work correctly although 
> > they appear to in some front end interfaces. I believe you 
> need to use 
> > one of the latin encodings or unicode to resolve this.
> > 
> > Regards, Dave.
> > 
> 
> I will probe with other encodings as you suggest but driver 
> v7.3.2 works fine on this and only if a install
> v8.0.0.2 have problem. 
> 
> Are you sure it's *just* an encoding problem?

No. That's just a common one to check. Like I said, I know little about encoding and other localisation issues.

Regards, Dave.



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


end of thread, other threads:[~2004-11-16 17:28 UTC | newest]

Thread overview: 19+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 22:29 ODBC Driver stability Gary Doades <gpd@gpdnet.co.uk>
2004-11-10 09:54 ` Markus Donath <donath@netapps.de>
2004-11-10 19:15   ` Gary Doades <gpd@gpdnet.co.uk>
2004-11-10 21:00     ` Jaime Casanova <systemguards@yahoo.com>
2004-11-11 09:45     ` md-postgres-donath@netapps.de
2004-11-11 18:39       ` Gary Doades <gpd@gpdnet.co.uk>
2004-11-16 13:42   ` Shachar Shemesh <psql@shemesh.biz>
2004-11-16 16:40     ` md-postgres-donath@netapps.de
2004-11-16 17:28       ` Shachar Shemesh <psql@shemesh.biz>
2004-11-12 08:37 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
2004-11-12 21:10 ` Jaime Casanova <systemguards@yahoo.com>
2004-11-12 22:39   ` Peter Eisentraut <peter_e@gmx.net>
2004-11-12 22:56     ` Jaime Casanova <systemguards@yahoo.com>
2004-11-13 14:01       ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
2004-11-13 23:31         ` Jaime Casanova <systemguards@yahoo.com>
2004-11-14 15:13           ` Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
2004-11-12 21:32 Re: ODBC Driver stability Dave Page <dpage@vale-housing.co.uk>
2004-11-12 21:43 ` Jaime Casanova <systemguards@yahoo.com>
2004-11-12 22:04 Re: ODBC Driver stability 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