Skip to content

Commit 768eaf1

Browse files
committed
Mention the actual stored size of NUMERIC values, per David Fetter.
1 parent 628c089 commit 768eaf1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.156 2005/03/13 09:36:30 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.157 2005/05/01 15:54:46 tgl Exp $
33
-->
44

55
<chapter id="datatype">
@@ -505,7 +505,9 @@ NUMERIC
505505
trailing zeroes. Thus, the declared precision and scale of a column
506506
are maximums, not fixed allocations. (In this sense the <type>numeric</>
507507
type is more akin to <type>varchar(<replaceable>n</>)</type>
508-
than to <type>char(<replaceable>n</>)</type>.)
508+
than to <type>char(<replaceable>n</>)</type>.) The actual storage
509+
requirement is two bytes for each group of four decimal digits,
510+
plus eight bytes overhead.
509511
</para>
510512

511513
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy