From: | Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com> |
---|---|
To: | "SHARMILA JOTHIRAJAH" <sharmi_jo(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: postgres 8.3 beta 2 storage question |
Date: | 2007-11-27 17:18:18 |
Message-ID: | 92869e660711270918t2b860745w7d249075ef6c5742@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2007/11/27, SHARMILA JOTHIRAJAH <sharmi_jo(at)yahoo(dot)com>:
> 1.How does postgres version 8.3 betat 2 handle varchar and numeric data
> types in terms of storage
> I understand for varchar it has 1byte overhead (instead of 4) if length<128
> How does it handle for numeric? The manual says
> "The actual storage requirement is two bytes for each group of four decimal
> digits, plus five to eight bytes overhead."
which manual?
( not these two: )
http://www.postgresql.org/docs/8.1/static/datatype.html#DATATYPE-NUMERIC-DECIMAL
http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
> 2. Does postgres always inserts a complete record into a page unlike oracle
> whose record can span multiple pages? Does this waste space too?
records larger than one page are TOASTed
http://www.postgresql.org/docs/current/static/storage-page-layout.html
--
Filip Rembiałkowski
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2007-11-27 17:19:01 | Re: System Load analyze |
Previous Message | Tom Lane | 2007-11-27 17:14:13 | Re: autovacuum process blocks without reporting a deadlock |