Re: Raw size
От | Bort, Paul |
---|---|
Тема | Re: Raw size |
Дата | |
Msg-id | 735D404BD9E7EB44B9CDFC27FC88809B0582DAB6@mail2.tmwsystems.com обсуждение исходный текст |
Ответ на | Raw size (Ioannis Theoharis <theohari@ics.forth.gr>) |
Ответы |
Re: Raw size
|
Список | 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 по дате отправления: