Data Type Size Calculation - Mailing list pgsql-docs

From PG Doc comments form
Subject Data Type Size Calculation
Date
Msg-id 164461032874.9678.9708057254834166884@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Data Type Size Calculation
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/datatype-numeric.html
Description:

> The actual storage requirement is two bytes for each group of four decimal
digits, plus three to eight bytes overhead.

Please describe what 'overhead' means. 

I'd like to be able to calculate the data size of NUMBER(19,4). I can
calculate 2 bytes per 4 digits... with 19 digits, I have 5 groups of 4
digits, 

so the data length I seek is 5 bytes + overhead... then I'm left hanging.
:(

Troy.
#

pgsql-docs by date:

Previous
From: Erwin Brandstetter
Date:
Subject: Re: PL/pgSQL PERFORM WITH query
Next
From: Bruce Momjian
Date:
Subject: Re: Data Type Size Calculation