X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DA20C52816 for ; Fri, 22 Jul 2005 09:30:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73035-02 for ; Fri, 22 Jul 2005 12:30:10 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by svr1.postgresql.org (Postfix) with ESMTP id 077735284A for ; Fri, 22 Jul 2005 09:30:09 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IK1008JS42CWDG7@vms048.mailsrvcs.net> for pgsql-odbc@postgresql.org; Fri, 22 Jul 2005 07:30:13 -0500 (CDT) Date: Fri, 22 Jul 2005 08:31:28 -0400 From: "Joel Fradkin" Subject: Re: MaxLongVarcharSize=8190; In-reply-to: To: "'Dave Page'" , Cc: Message-id: <000801c58eb9$48f7a3d0$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: multipart/alternative; boundary="----=_NextPart_000_0009_01C58E97.C1E603D0" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.854 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE, MSGID_DOLLARS X-Spam-Level: ** X-Archive-Number: 200507/112 X-Sequence-Number: 5578 This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C58E97.C1E603D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Dave, =20 I guess there is no down side to allowing the users longer text fields = for notes then. =20 I was testing the libpq driver yesterday doing stress tests from our web = app and did not see any leakage. I also did not see any errors (My test server is not very robust, so I = could only get like 4 concurrent users working using the web stress tool from = MS before the site itself stopped being happy). I do plan to get a robust server to test on next week and can grab the latest snapshot. =20 I am a little unclear on the questions about postgres headers, do I just = go find the source for that and put the headers in my project. I am compiling under .net (the version I tested was I believe all the = latest and greatest from csv). I can try switching back to vc++ vrom studio 6 if that is the concensus = and use the mak file as you recommended. It has been several years for me to do compiling from the command line = in C++, so I feel more comfortable in the IDE. =20 I am concerned about trying to convert to unicode and the new drivers = again, because last time my tests went smoth (using the non libpq driver) and = in production it fell like a punctured blimp. I wasted like 18hours of my = time (not totally least I have a current data set in unicode to test with). =20 I have not tried the new drivers with SQLASCII database, so I will see = what it does with that (if its like the non libpq driver it will not display = the french properly unless it's a unicode data base). =20 I was also unclear what you meant by -4 (SQL_NO_TOTAL)? =20 Joel =20 -----Original Message----- From: Dave Page [mailto:dpage@vale-housing.co.uk]=20 Sent: Friday, July 22, 2005 3:56 AM To: Joel Fradkin; pgsql-odbc@postgresql.org Subject: RE: [ODBC] MaxLongVarcharSize=3D8190; =20 =20 =20 _____ =20 From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joel Fradkin Sent: 21 July 2005 22:34 To: pgsql-odbc@postgresql.org Subject: [ODBC] MaxLongVarcharSize=3D8190; When I pulled my connectionstring from the dns builder I got MaxLongVarcharSize=3D8190; We had data in our SQL database in text fields longer then 8k. When a client tried to acces that record we got an error so I upped the MaxLongVarcharSize=3D8190; to MaxLongVarcharSize=3D18190; This fixed the problem, but I have been told by a conulting group (PCM) = that using over 8 k might be causing my errors.=20 =20 Err, why exactly? As far as I'm aware, that option has always worked properly. =20 I did change it back to 8k and am a bit subjective on the outcome (we = still have been having issues, but not odbc related). Does anyone know the correct settings for my connection string to use = longer then 8k text fields, or do I need to divide the data across multiple records?=20 =20 Set it to whatever you need. iirc, you can also use -4 (SQL_NO_TOTAL) if = you like. =20 Regards, Dave. ------=_NextPart_000_0009_01C58E97.C1E603D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks Dave,

 

I guess there is no down side to = allowing the users longer text fields for notes then.

 

I was testing the libpq driver = yesterday doing stress tests from our web app and did not see any = leakage.

I also did not see any errors (My = test server is not very robust, so I could only get like 4 concurrent users = working using the web stress tool from MS before the site itself stopped being = happy). I do plan to get a robust server to test on next week and can grab the = latest snapshot.

 

I am a little unclear on the = questions about postgres headers, do I just go find the source for that and put = the headers in my project.

I am compiling under .net (the = version I tested was I believe all the latest and greatest from = csv).

I can try switching back to vc++ = vrom studio 6 if that is the concensus and use the mak file as you = recommended.

It has been several years for me to = do compiling from the command line in C++, so I feel more comfortable in = the IDE.

 

I am concerned about trying to = convert to unicode and the new drivers again, because last time my tests went smoth (using = the non libpq driver) and in  production it fell like a punctured blimp. I = wasted like 18hours of my time (not totally least I have a current data set in = unicode to test with).

 

I have not tried the new drivers = with SQLASCII database, so I will see what it does with that (if its like the non = libpq driver it will not display the french properly unless it’s a = unicode data base).

 

I was also unclear what you meant = by -4 (SQL_NO_TOTAL)?

 

Joel
 

-----Original = Message-----
From:
Dave = Page [mailto:dpage@vale-housing.co.uk]
Sent:
Friday, July 22, 2005 3:56 = AM
To:
Joel = Fradkin; pgsql-odbc@postgresql.org
Subject: RE: [ODBC] MaxLongVarcharSize=3D8190;

 

 

 


From: = pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joel Fradkin
Sent:
21 July = 2005 22:34
To: = pgsql-odbc@postgresql.org
Subject: [ODBC] MaxLongVarcharSize=3D8190;

When I pulled my connectionstring from the dns builder I got

MaxLongVarcharSize=3D8190;

We had data in our = SQL database in text fields longer then 8k.

When a client tried = to acces that record we got an error so I upped the MaxLongVarcharSize=3D8190; = to

MaxLongVarcharSize=3D18190;

This fixed the = problem, but I have been told by a conulting group (PCM) that using over 8 k might be causing my errors. 

 

Err, why exactly? = As far as I'm aware, that option has always worked properly.

 

I did change it = back to 8k and am a bit subjective on the outcome (we still have been having = issues, but not odbc related).

Does anyone know = the correct settings for my connection string to use longer then 8k text fields, or = do I need to divide the data across multiple records? 

 

Set it to whatever you need. iirc, you can also use -4 (SQL_NO_TOTAL) if you like.

 

Regards, Dave.

------=_NextPart_000_0009_01C58E97.C1E603D0--