PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 19th, 2002, 12:35 AM
zengjun zengjun is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 1 zengjun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question What's wrong with TEXT size ?

Sorry, My Engish is so poor , please read the following carefuly:

I installed cygwin on my win2000, the PostgreSQL works well. I use VB and psqlODBC driver to connect the database . It seemed that all are well. When I insert a string which is beyond 8K to a TEXT column , I found the TEXT column stored some rubbish date .

The PostgreSQL is 7.2 ,
ODBC driver is 7.2.1 downloaded from URL


I read some article . They told me that the length of a TEXT column is unlimited . Who can tell me What 's wrong with it.

Thanks

Reply With Quote
  #2  
Old June 19th, 2002, 10:58 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 13 m 55 sec
Reputation Power: 27
The text field is unlimited in length but PostgreSQL has a maximum size for each row of 8k. This is configurable to 32k but slows down the database. In your case it is needed so you will need to modify the configuration file for PostgreSQL to increase the size.
__________________
- Andreas Koepke

Koepke Photography


Reply With Quote
  #3  
Old June 20th, 2002, 12:35 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 12 m 27 sec
Reputation Power: 56
The 8K limitation no longer exists, in latest versons of PostgreSQL (actually, for at least 2 years). See http://www.ca.postgresql.org/users-...imitations.html

I cannot say exactly what the problem is, but you are using on several technologies here, including VB and ODBC. Have you tried just running a simple SQL query, including more than 8K, just to see if it works? (Hint: just build a text file with an SQL query of > 8K data, then run it from the command line)

If the query works, then you should check out VB and ODBC a little more.
__________________
The real n-tier system:

FreeBSD -> PostgreSQL -> [any_language] -> Apache -> Mozilla/XUL

Amazon wishlist -- rycamor (at) gmail.com

Reply With Quote
  #4  
Old June 20th, 2002, 08:48 AM
sylow sylow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Alkmaar
Posts: 96 sylow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 10 m 41 sec
Reputation Power: 8
whenever I hear ODBC my stomach gets upside down.
__________________
Sylow Web Development and Design
Web Developer

Reply With Quote
  #5  
Old June 23rd, 2002, 06:24 AM
Ted Striker Ted Striker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 409 Ted Striker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Thumbs up

I agree with rycamor (he is the MAN on these things) and sylow.

Try and bypass ODBC first and see what happens. Go staight to Cygwin command line and run your query before worrying about troubleshooting VB and Access.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > What's wrong with TEXT size ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT