dbTalk Databases Forums  

capacity of datatype "text"

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss capacity of datatype "text" in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Ossmann
 
Posts: n/a

Default capacity of datatype "text" - 10-12-2004 , 11:58 PM






I'm not sure where to find it exactly, but does anyone know how much
data a column of type "text" in a postgres DB can hold?

Thanks

Reply With Quote
  #2  
Old   
Neil Conway
 
Posts: n/a

Default Re: capacity of datatype "text" - 10-18-2004 , 11:29 PM






On Wed, 2004-10-13 at 14:58, John Ossmann wrote:
Quote:
I'm not sure where to find it exactly, but does anyone know how much
data a column of type "text" in a postgres DB can hold?
There is no limit on what "text" itself can contain. However, a field of
any data type can contain at most 1GB (compressed -- Postgres will do
this compression automatically). See:

http://www.postgresql.org/docs/faqs/FAQ.html#4.5

-Neil



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #3  
Old   
David Garamond
 
Posts: n/a

Default Re: capacity of datatype "text" - 10-19-2004 , 12:14 AM



John Ossmann wrote:
Quote:
I'm not sure where to find it exactly, but does anyone know how much
data a column of type "text" in a postgres DB can hold?
it's in the manual, in the Data Types section. the manual says "around 1GB".

btw, TEXT is one of those postgres-specific features that makes you
stick (stuck? :-) with postgres. nowadays, i never ever have to bother
to think whether to give a column a max width of 32, 50, 64, 100, 150,
.... is that a bad thing?

--
dave

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #4  
Old   
John DeSoi
 
Posts: n/a

Default Re: capacity of datatype "text" - 10-19-2004 , 01:15 PM




On Oct 19, 2004, at 1:14 AM, David Garamond wrote:

Quote:
btw, TEXT is one of those postgres-specific features that makes you
stick (stuck? :-) with postgres. nowadays, i never ever have to bother
to think whether to give a column a max width of 32, 50, 64, 100, 150,
... is that a bad thing
I don't think it is a bad thing. Unless there is a clear and specific
limit related to the domain, why create one? You can create a last name
field with 20, 30, or 50 characters but there are no rules in the world
that will ensure you picked the right limit.

I guess it is only a bad thing if you have to consider porting your
PostgreSQL database. Hopefully it won't ever happen .

Best,

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL



---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.