The money type supports US-style currency with fixed decimal point representation. If Postgres is compiled with USE_LOCALE then the money type should use the monetary conventions defined for locale(7).
money 型は、固定小数点のアメリカ式の貨幣単位を サポートしています。 Postgres が USE_LOCALE オプションを 付けてコンパイルされている場合、locale(7) で定義された貨幣の規則が適用されます。
Table 3-4. Postgres の通貨型
通貨型 | 記憶領域 | 説明 | 有効範囲 |
---|---|---|---|
money | 4 bytes | 固定少数点 | -21474836.48 から +21474836.47 |
numeric will replace the money type, and should be preferred.
numeric 型は、money 型の代用が可能で、また その使用が推奨されています。