Recently I migrated a DB to PostgreSQL that has some columns defined as numeric(9,3) and numeric(9,4). In testing the app I have found that when da
numeric(9,3)
numeric(9,4)
You can strip training zeros with the trim_scale function from PostgreSQL v13 on. That will reduce the storage size of the number.
trim_scale