Re: Raw size - Mailing list pgsql-hackers

From Bort, Paul
Subject Re: Raw size
Date
Msg-id 735D404BD9E7EB44B9CDFC27FC88809B0582DAB6@mail2.tmwsystems.com
Whole thread Raw
In response to Raw size  (Ioannis Theoharis <theohari@ics.forth.gr>)
Responses Re: Raw size
List pgsql-hackers
<p><font size="2">> </font><br /><font size="2">> 990 * 2072 = 2,051,280 Bytes</font><br /><font size="2">>
</font><br/><font size="2">> BUT after clustering triples according to an index on att1:</font><br /><font
size="2">></font><br /><font size="2"><snip></font><br /><font size="2">> </font><br /><font size="2">>
142* 8 * 1024 = 1,163,264 Bytes</font><br /><font size="2">> </font><br /><font size="2">> </font><br /><font
size="2">>Is there any compression or what?</font><br /><font size="2">> </font><p><font size="2">varchar means
'charactervarying'. What varies is the length. So a varchar(1000) with 'foo' in it only takes a few bytes ('foo' plus
lengthinfo) instead of 1000 bytes.</font><p><font size="2">If you really want a fixed-length field, nchar or char
shoulddo what you want. </font> 

pgsql-hackers by date:

Previous
From: "Bort, Paul"
Date:
Subject: Re: We are not following the spec for HAVING without GR
Next
From: Kevin HaleBoyes
Date:
Subject: Re: We are not following the spec for HAVING without GROUP